source:
trunk/sys/dietlibc/toupper.c
@
207
Last change on this file since 207 was 1, checked in by , 8 years ago | |
---|---|
File size: 126 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <ctype.h> |
2 | ||
3 | inline int toupper(int ch) { | |
4 | if ( (unsigned int)(ch - 'a') < 26u ) | |
5 | ch += 'A' - 'a'; | |
6 | return ch; | |
7 | } | |
8 |
Note: See TracBrowser
for help on using the repository browser.