139 int getopt(
int argc,
char*
const* argv,
char *optstring)
141 static char *next = NULL;
148 if (next == NULL || *next ==
'\0')
161 if (strcmp(argv[
optind],
"--") == 0)
175 cp = strchr(optstring, c);
177 if (cp == NULL || c ==
':')
int getopt(int argc, char *const *argv, char *optstring)