Changeset 08e103d4 in mainline for uspace/lib/c/generic/getopt.c
- Timestamp:
- 2019-02-05T18:26:05Z (6 years ago)
- Children:
- 1d2f85e
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/getopt.c
rd066259 r08e103d4 366 366 has_equal++; 367 367 } else 368 current_argv_len = str_ size(current_argv);368 current_argv_len = str_bytes(current_argv); 369 369 370 370 for (i = 0; long_options[i].name; i++) { 371 371 /* find matching long option */ 372 372 if (str_lcmp(current_argv, long_options[i].name, 373 str_n length(current_argv, current_argv_len)))373 str_ncode_points(current_argv, current_argv_len))) 374 374 continue; 375 375 376 if (str_ size(long_options[i].name) ==376 if (str_bytes(long_options[i].name) == 377 377 (unsigned)current_argv_len) { 378 378 /* exact match */
Note:
See TracChangeset
for help on using the changeset viewer.