Changeset 0e7c3d9 in mainline


Ignore:
Timestamp:
2017-05-15T19:25:23Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ee7e6a
Parents:
fec333b3
Message:

Remove stricmp()

Location:
uspace
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    rfec333b3 r0e7c3d9  
    12391239       
    12401240        return true;
    1241 }
    1242 
    1243 int stricmp(const char *a, const char *b)
    1244 {
    1245         int c = 0;
    1246        
    1247         while (a[c] && b[c] && (!(tolower(a[c]) - tolower(b[c]))))
    1248                 c++;
    1249        
    1250         return (tolower(a[c]) - tolower(b[c]));
    12511241}
    12521242
  • uspace/lib/c/include/str.h

    rfec333b3 r0e7c3d9  
    132132 */
    133133
    134 extern int stricmp(const char *, const char *);
    135 
    136134extern long int strtol(const char *, char **, int);
    137135extern unsigned long strtoul(const char *, char **, int);
  • uspace/lib/http/src/headers.c

    rfec333b3 r0e7c3d9  
    251251bool http_header_name_match(const char *name_a, const char *name_b)
    252252{
    253         return stricmp(name_a, name_b) == 0;
     253        return str_casecmp(name_a, name_b) == 0;
    254254}
    255255
  • uspace/srv/fs/exfat/exfat_ops.c

    rfec333b3 r0e7c3d9  
    527527        while (exfat_directory_read_file(&di, name, EXFAT_FILENAME_LEN, &df,
    528528            &ds) == EOK) {
    529                 if (stricmp(name, component) == 0) {
     529                if (str_casecmp(name, component) == 0) {
    530530                        /* hit */
    531531                        exfat_node_t *nodep;
  • uspace/srv/fs/fat/fat_dentry.c

    rfec333b3 r0e7c3d9  
    6363        size_t size;
    6464
    65         if (!(rc = stricmp(name, component)))
     65        if (!(rc = str_casecmp(name, component)))
    6666                return rc;
    6767        if (!str_chr(name, '.')) {
     
    7373                name[size] = '.';
    7474                name[size + 1] = '\0';
    75                 rc = stricmp(name, component);
     75                rc = str_casecmp(name, component);
    7676        }
    7777        return rc;
  • uspace/srv/fs/udf/udf_ops.c

    rfec333b3 r0e7c3d9  
    131131                    fid->lenght_file_id, &UDF_NODE(pfn)->instance->charset);
    132132               
    133                 if (stricmp(name, component) == 0) {
     133                if (str_casecmp(name, component) == 0) {
    134134                        int rc = udf_node_get(rfn, udf_service_get(pfn),
    135135                            udf_long_ad_to_pos(UDF_NODE(pfn)->instance, &long_ad));
Note: See TracChangeset for help on using the changeset viewer.