Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site vu44.UUCP Path: utzoo!linus!decvax!mcvax!vu44!jack From: jack@vu44.UUCP (Jack Jansen) Newsgroups: net.unix-wizards Subject: Re: getc() != EOF Message-ID: <335@vu44.UUCP> Date: Mon, 4-Jun-84 05:45:39 EDT Article-I.D.: vu44.335 Posted: Mon Jun 4 05:45:39 1984 Date-Received: Fri, 1-Jun-84 07:50:22 EDT References: <1138@sri-arpa.UUCP> Organization: VU Informatica, Amsterdam Lines: 8 With the PR1ME c-compiler, chars are unsigned, and they have their parity bit on(!!). This means that while( (c=getc())!= EOF) doesn't work, since the (c=getc()) is not sign-extended to an integer, but just zero padded. As soon as I found this out I worked myself through the C manual, but this behavior doesn't seem to violate the standard..... Jack, {philabs|decvax}!mcvax!vu44!jack