1
0

proj: Add optind to getopt

This commit is contained in:
2025-07-28 11:21:59 +02:00
parent 82d75417ef
commit 3891b11ef1
2 changed files with 6 additions and 2 deletions

View File

@@ -1226,7 +1226,7 @@ int sym(getopt)(const int argc, char *const argv[], const char *shortopts) {
else if_invalid(getopt)
}
const int ret = __real_getopt(argc, argv, shortopts);
msg("return %i", ret);
msg("return %i; optind %i", ret, optind);
return ret;
}