Ctype.h

Kurt Haserodt kurt at wucs.UUCP
Fri Mar 16 10:00:10 AEST 1984


	Why does ctype have 0 as the first element, and all the ctype
	functions add 1 to get the proper index?


This is so EOF can be characterized (no pun intended) by the ctype
macros.  As you recall EOF is (many times) defined to be -1.



More information about the Comp.unix.wizards mailing list