Changeset 7afb4a5 in mainline for uspace/lib/libc/generic/getopt.c


Ignore:
Timestamp:
2009-04-09T21:28:50Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
095003a8
Parents:
92fd52d7
Message:

Nuke strchr() and strrchr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/getopt.c

    r92fd52d7 r7afb4a5  
    242242        }
    243243        if ((optchar = (int)*place++) == (int)':' ||
    244             (oli = strchr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) {
     244            (oli = str_chr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) {
    245245                /* option letter unknown or ':' */
    246246                if (!*place)
     
    378378                        return -1;
    379379                }
    380                 if ((has_equal = strchr(current_argv, '=')) != NULL) {
     380                if ((has_equal = str_chr(current_argv, '=')) != NULL) {
    381381                        /* argument found (--option=arg) */
    382382                        current_argv_len = has_equal - current_argv;
Note: See TracChangeset for help on using the changeset viewer.