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 strcmp(const char *String1, const char *String2)
char * strchr(const char *String, int ch)
int getopt(int nargc, char *const *nargv, const char *ostr)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)