X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Fctype.h;h=0d437e9bf3d592e423580c67071deb1b93adffb4;hb=4c75a9638c6868c70f2cd4c854e4dcb4096114a7;hp=4c5613b6ed9b24fd908b4d14f0c165c01fff69c8;hpb=a9a954f29f61a1f93a9b585f69f617de2f12189f;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 4c5613b6..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; @@ -35,5 +40,11 @@ static inline int isspace(int ch) { if(ch == '\n') return 1; return 0; } +// C99 +static inline int isblank(int ch) { + if(ch == ' ') return 1; + if(ch == '\t') return 1; + return 0; +} #endif