static const char *next_opt(const char *p, unsigned *i, unsigned *len)
{
- if (!p)
- (*i)++;
for (; *i < opt_count; (*i)++) {
if (opt_table[*i].flags == OPT_SUBTABLE)
continue;
strcspn(longopt, "/"), longopt, problem);
}
-void dump_optstate(void);
-void dump_optstate(void)
-{
- printf("opterr = %i, optind = %i, optopt = %i, optarg = %s\n",
- opterr, optind, optopt, optarg);
-}
-
/* Parse your arguments. */
bool opt_parse(int *argc, char *argv[], void (*errlog)(const char *fmt, ...))
{