source:
trunk/sys/dietlibc/tolower.c
@
125
| Last change on this file since 125 was 1, checked in by , 9 years ago | |
|---|---|
| File size: 119 bytes | |
| Rev | Line | |
|---|---|---|
| [1] | 1 | #include <ctype.h> |
| 2 | ||
| 3 | int tolower(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.
