[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] iscntrl(EOF)
- To: Guido Flohr <gufl0000@stud.uni-sb.de>
- Subject: Re: [MiNT] iscntrl(EOF)
- From: Andreas Schwab <schwab@suse.de>
- Date: Mon, 28 Feb 2000 15:28:29 +0100
- Cc: mint@fishpool.com (MiNT mailing list)
- In-reply-to: Guido Flohr's message of "Sun, 27 Feb 2000 00:23:12 +0100"
- References: <20000227002312.A283@stud>
- Sender: owner-mint@fishpool.com
- User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/21.0.90
Guido Flohr <gufl0000@stud.uni-sb.de> writes:
|> Hi,
|>
|> in the absence of any reliable C reference I can only guess what
|> "iscntrl (EOF)" should return. IMHO EOF should be classified as a control
|> character in the C locale. The GNU libc says it isn't a control
|> character.
|>
|> Could anybody check that either in the standard or on other platforms?
ISO C says that the domain of the <ctype.h> functions is
UCHAR_MIN..UCHAR_MAX + EOF. They all shall return false for EOF, since
that is not a character and thus cannot have any of the tested properties.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg