include/libtu/optparser.h

changeset 37
3cf58eae0df6
parent 36
63cd573ffbcf
child 39
ebea551c80dc
equal deleted inserted replaced
36:63cd573ffbcf 37:3cf58eae0df6
40 OPT_ARG=1, /* option has an argument */ 40 OPT_ARG=1, /* option has an argument */
41 OPT_OPT_ARG=3 /* option may have an argument */ 41 OPT_OPT_ARG=3 /* option may have an argument */
42 }; 42 };
43 43
44 44
45 #define END_OPTPARSER_OPTS {0, NULL, 0, NULL, NULL}
46
45 typedef struct _OptParserOpt{ 47 typedef struct _OptParserOpt{
46 int optid; 48 int optid;
47 const char *longopt; 49 const char *longopt;
48 int flags; 50 int flags;
49 const char *argname; 51 const char *argname;

mercurial