30 if (curopt ==
NULL || curopt[0] !=
'-' ||
strcmp(curopt,
"-") == 0)
35 if (
strcmp(curopt,
"--") == 0)
39 if ((
p =
strchr(optstring, curopt[cursubopt])) ==
NULL) {
40 optopt = curopt[cursubopt];
46 if (curopt[cursubopt+1] !=
'\0') {
47 optarg = curopt+cursubopt+1;
55 if (*optstring ==
':')
int getopt(int nargc, char *const *nargv, const char *ostr)
int WINAPIV fprintf(FILE *file, const char *format,...)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP int __cdecl strcmp(const char *, const char *)