r368: API documentation

This commit is contained in:
Heng Li
2017-09-14 22:23:04 -04:00
parent e2823d4aee
commit 75ff7ceec5
4 changed files with 121 additions and 17 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ static int __getopt_long_core(int argc, char *const *argv, const char *optstring
(argv[optind][1] == '-' && argv[optind][2])))
{
int colon = optstring[optstring[0]=='+'||optstring[0]=='-']==':';
int i, cnt, match;
int i, cnt, match = -1;
char *opt;
for (cnt=i=0; longopts[i].name; i++) {
const char *name = longopts[i].name;