search for: __ctype_upper

Displaying 1 result from an estimated 1 matches for "__ctype_upper".

Did you mean: __ctype_toupper
2003 Nov 24
1
[PATCH] fix off-by-one correction in ctypes
...--- # diff -Nru a/klibc/include/ctype.h b/klibc/include/ctype.h --- a/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 +++ b/klibc/include/ctype.h Mon Nov 24 15:37:03 2003 @@ -35,13 +35,13 @@ __ctype_inline int isalnum(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower|__ctype_digit); } __ctype_inline int isalpha(int __c) { - return __ctypes[__c+1] & + return __ctypes[__c] & (__ctype_upper|__ctype_lower); } @@ -57,48 +57,48 @@ __ctype_inline int iscntrl(int __c) { - return (__c >= 0) && !(__ctypes[__c+1] &...