Changeset 7afb4a5 in mainline for uspace/lib/libc/generic/getopt.c
- Timestamp:
- 2009-04-09T21:28:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 095003a8
- Parents:
- 92fd52d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/getopt.c
r92fd52d7 r7afb4a5 242 242 } 243 243 if ((optchar = (int)*place++) == (int)':' || 244 (oli = str chr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) {244 (oli = str_chr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) { 245 245 /* option letter unknown or ':' */ 246 246 if (!*place) … … 378 378 return -1; 379 379 } 380 if ((has_equal = str chr(current_argv, '=')) != NULL) {380 if ((has_equal = str_chr(current_argv, '=')) != NULL) { 381 381 /* argument found (--option=arg) */ 382 382 current_argv_len = has_equal - current_argv;
Note:
See TracChangeset
for help on using the changeset viewer.