Changeset 2dd7288 in mainline for uspace/lib/libc/include/ctype.h


Ignore:
Timestamp:
2008-08-10T09:11:44Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2e9c47
Parents:
5749372
Message:

Add tolower() and stricmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ctype.h

    r5749372 r2dd7288  
    7777}
    7878
     79static inline int tolower(int c)
     80{
     81        if (isupper(c))
     82                return (c + ('a' - 'A' > 0 ? 'a' - 'A' : 'A' - 'a'));
     83        else
     84                return c;
     85}
     86
    7987#endif
    8088
Note: See TracChangeset for help on using the changeset viewer.