DragonFly BSD
DragonFly commits List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/include ctype.h src/lib/libc/gen isctype.c tolower.c toupper.c


From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx>
Date: Fri, 8 Jul 2005 13:08:27 +0200

-On [20050708 12:23], Dennis Melentyev (dennis.melentyev@xxxxxxxxx) wrote:
>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.

Both C standards, POSIX and SUS all state that the argument is:

is*(int c)

So not going to work.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/
http://www.tendra.org/   | http://www.in-nomine.org/
Where can I find a man who has forgotten words? I would like to have a word
with him...



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]