Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!tymix!cirrusl!ss168!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: getchar and EOF (was: One more point regarding = and == (more flamage)) Message-ID: <3043@cirrusl.UUCP> Date: 8 Apr 91 20:09:40 GMT References: <3555@inews.intel.com> <3465@litchi.bbn.com> <1991Apr4.215605.2801@syssoft.com> <1991Apr7.064003.8552@athena.mit.edu> Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 11 In <1991Apr7.064003.8552@athena.mit.edu> scs@adam.mit.edu (Steve Summit) writes: >As a return value from getchar, EOF is guaranteed to >be distinct from all char values. I have always assumed that EOF is guaranteed to be -1. I think there is enough history behind EOF == -1 (just as with NULL == 0) that it isn't likely to be anything else. -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi