cvs commit: src/include ctype.h src/lib/libc/gen isctype.c tolower.c toupper.c
Matthew Dillon
dillon at apollo.backplane.com
Fri Jul 8 11:31:09 PDT 2005
:Just curious...
:
:If EOF is 'int -1' (0xFFFFFFFF), then having is*( _unsigned_ int) will
:solve the problem:
:Programmer will need to explicitely cast values to unsigned int,
:resulting in 0xFF for char -1 and 0xFFFFFFFF for EOF.
:
:PS. I never have read the SUS, so don't shoot me dead... Just ignore
:if inappropriate :)
It wouldn't work anyway, even if we could (and we can't since the
type is specifically an 'int'). A char x = -1 will still wind up
being 0xFFFFFFFF when cast to an unsigned int.
-Matt
More information about the Commits
mailing list