commit | 8324b89598b2aee0957a0378f0f63ff5755498be | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Nov 19 02:49:22 2006 -0500 |
committer | Rob Landley <rob@landley.net> | Sun Nov 19 02:49:22 2006 -0500 |
tree | 6958c34834147ab29607a8e67aca2b05a751f2ee | |
parent | b29ceb8bd0f99134fe215eebc531dbcd7717e8ae [diff] [blame] |
New option parsing infrastructure (doesn't use getopt). Hook it up to existing applets. Still a bit buggy, but bits of it work.
diff --git a/lib/lib.h b/lib/lib.h index d013af9..013e491 100644 --- a/lib/lib.h +++ b/lib/lib.h
@@ -13,6 +13,14 @@ char str[0]; }; +struct arg_list { + struct arg_list *next; + char *arg; +}; + +// args.c +void get_optflags(void); + // functions.c void verror_msg(char *msg, int err, va_list va); void error_msg(char *msg, ...);