[klibc] isspace() and other ctype.h functions

Kai Germaschewski kai.germaschewski at unh.edu
Wed Nov 12 08:52:22 PST 2003


On Tue, 11 Nov 2003, Greg KH wrote:

> __ctype_inline int isspace(int __c)
> {
>   return __ctypes[__c+1] & __ctype_space; */
> }   

Side remark: Is this supposed to crash if one passes an __c outside the 
allowed range (ie < -1 || >= sizeof(__ctypes) - 1)?. My understanding of 
the man page is that it should return 0, not "undefined behavior".

--Kai



More information about the klibc mailing list