diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-11-08 10:36:36 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2012-05-25 14:21:20 -0400 |
commit | 208eba2c6d5aff4573ff360c4873d199f1f10afb (patch) | |
tree | ad268cd7c7bf7fa1da9162b3f2e530ef6ebec5d7 /src/mklist.c | |
parent | 91c93844c5c2fb9330731f730a3fbe0dcda8fe7f (diff) | |
download | duser-208eba2c6d5aff4573ff360c4873d199f1f10afb.tar.gz |
Removed pcre
Diffstat (limited to 'src/mklist.c')
-rw-r--r-- | src/mklist.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mklist.c b/src/mklist.c index 6da5cfa..521285a 100644 --- a/src/mklist.c +++ b/src/mklist.c @@ -26,7 +26,6 @@ #include <pwd.h> #include <errno.h> #include <libgen.h> -#include <pcre.h> #include "duser.h" char* str_replace(char* str, char* old, char* new) @@ -120,24 +119,5 @@ int mklist(char* filename) exit(1); } - pcre *re; - const int OVECOUNT = 30; - const char* error; - int rc; - int erroffset; - int ovector[OVECOUNT]; - - if((re = pcre_compile("%s|list", 0, &error, &erroffset, NULL)) == NULL) - { - fprintf(stderr, "%s: PCRE compilation failed at offset %d: %s\n", SELF, erroffset, error); - return -1; - } - - if((rc = pcre_exec(re, NULL, tmptpl, strlen(tmptpl), 0, 0, ovector, OVECOUNT)) < 0) - { - fprintf(stderr, "%s: PCRE match failed '%d'\n", SELF, rc); - } - - printf("%s\n", (tmptpl + ovector[1])); return 0; } |