X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Fctype.h;h=0d437e9bf3d592e423580c67071deb1b93adffb4;hb=43eed682f209cef10678b5882fce95f16302ae51;hp=ddb0a614d351c2141274fff27462f83ced299f27;hpb=0eb50bc9e604f654bdb0409bb66da03b733f906c;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc.so_src/include_exp/ctype.h b/Usermode/Libraries/libc.so_src/include_exp/ctype.h index ddb0a614..0d437e9b 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/ctype.h +++ b/Usermode/Libraries/libc.so_src/include_exp/ctype.h @@ -27,6 +27,11 @@ static inline int toupper(int ch) { return ch - 'a' + 'A'; return ch; } +static inline int tolower(int ch) { + if('A'<=ch && ch <='Z') + return ch - 'A' + 'a'; + return ch; +} static inline int isspace(int ch) { if(ch == ' ') return 1;