This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char getopt_long_2(int argc, char** argv, const char* optString, const struct option* longOpts, int* optIndex) { | |
int c = getopt_long(argc, argv, optString, longOpts, optIndex); | |
if (c == -1) { | |
// No more options | |
return c; | |
} | |
if (c == 0) { | |
// Long option was specified -- find the short option | |
c = longOpts[*optIndex].val; |