old-libc-kernel/ctype/toCase.cpp
2016-07-27 15:03:34 +02:00

12 lines
No EOL
218 B
C++

#include <ctype.h>
#include "_ctype.h"
extern "C" int toupper(int c) {
if(isupper(c))
return c;
return c+0x20;
}
extern "C" int tolower(int c) {
if(islower(c))
return c;
return c-0x20;
}