Changeset d2093d6 in mainline


Ignore:
Timestamp:
2008-11-23T16:21:49Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0fdd6bb
Parents:
7782030
Message:

Add toupper().

File:
1 edited

Legend:

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

    r7782030 rd2093d6  
    8585}
    8686
     87static inline int toupper(int c)
     88{
     89        if (islower(c))
     90                return (c - ('a' - 'A' > 0 ? 'a' - 'A' : 'A' - 'a'));
     91        else
     92                return c;
     93}
     94
    8795#endif
    8896
Note: See TracChangeset for help on using the changeset viewer.