X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fbin%2Ftools%2Fapc.c;h=a2ab6e7a916c9c22307f3588e440b7ea9dc2e482;hp=be902bd5f2f9a773683417e9b1cf6aafeb36a496;hb=4da3506e5cf1a3eee35b60722b9c801867ef3f36;hpb=49cbc773cce9b257df4581b8fd99c3639f10f52a diff --git a/src/bin/tools/apc.c b/src/bin/tools/apc.c index be902bd..a2ab6e7 100644 --- a/src/bin/tools/apc.c +++ b/src/bin/tools/apc.c @@ -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' :