gbdk-releases/gbdk-lib/libc/toupper.c

7 lines
92 B
C
Raw Permalink Normal View History

2015-01-10 16:25:06 +01:00
#include <ctype.h>
2015-01-10 16:25:09 +01:00
char toupper(char c)
2015-01-10 16:25:06 +01:00
{
return ((c >= 'a' && c <= 'z') ? c - 32: c);
}