Changeset 1b20da0 in mainline for uspace/lib/c/generic/getopt.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/getopt.c
rdf6ded8 r1b20da0 197 197 if (IN_ORDER) { 198 198 /* 199 * GNU extension: 199 * GNU extension: 200 200 * return non-option as argument to option 1 201 201 */ … … 243 243 if (optchar == 'W' && oli[1] == ';') { /* -W long-option */ 244 244 /* XXX: what if no long options provided (called by getopt)? */ 245 if (*place) 245 if (*place) 246 246 return -2; 247 247 … … 450 450 *long_options[match].flag = long_options[match].val; 451 451 retval = 0; 452 } else 452 } else 453 453 retval = long_options[match].val; 454 454 if (idx)
Note:
See TracChangeset
for help on using the changeset viewer.