X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Fctype.h;h=0d437e9bf3d592e423580c67071deb1b93adffb4;hb=7ac33dd5e5baa147d47b9798878fea8b0586fe6c;hp=ddb0a614d351c2141274fff27462f83ced299f27;hpb=04a050f42807686dc119838c82372409246d55bb;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;