Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!columbia!rutgers!clyde!burl!codas!mtune!mtuxo!houxm!hropus!jrw
From: jrw@hropus.UUCP (Jim Webb)
Newsgroups: comp.bugs.sys5
Subject: Re: chars in conditional expression, 3b2 C compiler (Now stdio)
Message-ID: <845@hropus.UUCP>
Date: Thu, 1-Jan-87 20:07:49 EST
Article-I.D.: hropus.845
Posted: Thu Jan  1 20:07:49 1987
Date-Received: Fri, 2-Jan-87 06:38:52 EST
References: <2489@sdsu.UUCP> <189@olamb.UUCP>
Organization: Bell Labs, Holmdel, NJ
Lines: 12

> The only thing that really bugs me is the fact that chars are unsigned
> and therefore the following code will fail:
> 
> 	while ((c=getc(stream)) != EOF) putchar(c);
> 
> And you will have to redefine EOF to 255 (0377 or 0xff) or cast it to a char!

Ummm.  I always declare c as an int, not a char, and everything works fine
and dandy...
-- 
Jim Webb             "Out of phase--get help"          ...!ihnp4!hropus!jrw
    "Make sure comments and code agree.  If not, write a man page..."