Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site opus.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!hao!cires!nbires!opus!rcd
From: rcd@opus.UUCP
Newsgroups: net.unix-wizards
Subject: Re: Ctype.h
Message-ID: <241@opus.UUCP>
Date: Fri, 16-Mar-84 23:16:34 EST
Article-I.D.: opus.241
Posted: Fri Mar 16 23:16:34 1984
Date-Received: Sun, 18-Mar-84 08:36:19 EST
References: <133@wucs.UUCP>
Organization: NBI, Boulder
Lines: 8

<>
> Why does ctype have 0 as the first element, and all the ctype
> functions add 1 to get the proper index?
(I believe) because the EOF value returned by getc/getchar (stdio) looks
like -1 when used as an index to the table.  Thus the EOF value is not a
member of any of the character classes.
-- 
{hao,ucbvax,allegra}!nbires!rcd