X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fbin%2Ftools%2Fapc.c;h=2307ccc3f73b9dfa1916a2e7c20a9628a402170c;hp=be902bd5f2f9a773683417e9b1cf6aafeb36a496;hb=301cac5f6e2edcecf2e1bd89aee5182130a213fc;hpb=cfc81f889736b4043e631359ddcbba183328c270 diff --git a/src/bin/tools/apc.c b/src/bin/tools/apc.c index be902bd..2307ccc 100644 --- a/src/bin/tools/apc.c +++ b/src/bin/tools/apc.c @@ -14,7 +14,7 @@ /* Standard */ #include //print #include //errors -#include //strnlen +#include //strndupa /* Posix */ #include //exit #include //getopt @@ -45,6 +45,7 @@ int main #define $($)#$ //stringifier #define MAXSTR 255 #define MAXERR "-%c allows at most " $(MAXSTR) " input characters\n", opt +#define OPTS "d:o:h-" #define USAGE "Usage %s [-d dir_root][-o output_file][-h]\n", argv[0] #define USAGE_LONG \ "\tOptions:\n" \ @@ -55,7 +56,7 @@ int main { int opt; getopt: - switch (opt = getopt(argc, argv, "d:o:h-")) + switch (opt = getopt(argc, argv, OPTS)) { case DONE: break; case 'd' :