old-libc-kernel/ctype/toCase.cpp

12 lines
218 B
C++
Raw Permalink Normal View History

2016-07-27 13:03:34 +00:00
#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;
}