comparison lib/lib.h @ 25:eb46bb5626cb

New option parsing infrastructure (doesn't use getopt). Hook it up to existing applets. Still a bit buggy, but bits of it work.
author Rob Landley <rob@landley.net>
date Sun, 19 Nov 2006 02:49:22 -0500
parents 3981c96f9285
children f2c7f0799ebe
comparison
equal deleted inserted replaced
24:c8d0f1876c40 25:eb46bb5626cb
10 10
11 struct string_list { 11 struct string_list {
12 struct string_list *next; 12 struct string_list *next;
13 char str[0]; 13 char str[0];
14 }; 14 };
15
16 struct arg_list {
17 struct arg_list *next;
18 char *arg;
19 };
20
21 // args.c
22 void get_optflags(void);
15 23
16 // functions.c 24 // functions.c
17 void verror_msg(char *msg, int err, va_list va); 25 void verror_msg(char *msg, int err, va_list va);
18 void error_msg(char *msg, ...); 26 void error_msg(char *msg, ...);
19 void perror_msg(char *msg, ...); 27 void perror_msg(char *msg, ...);