Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!ima!haddock!karl From: karl@haddock.UUCP Newsgroups: comp.lang.c Subject: Re: ungetc Message-ID: <1556@haddock.ISC.COM> Date: Fri, 30-Oct-87 15:18:37 EST Article-I.D.: haddock.1556 Posted: Fri Oct 30 15:18:37 1987 Date-Received: Sun, 1-Nov-87 05:38:47 EST References: <6592@brl-smoke.ARPA> <165600020@uiucdcsb> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 8 Summary: Arg must be int, not char In article <165600020@uiucdcsb> mccaugh@uiucdcsb.cs.uiuc.edu writes: >Not sure why you want an int for first argument to 'ungetc' -- Harbison&Steele >report char, not int (page 316). ... Also, trying to push EOF has no effect If EOF is permitted as an argument (and has a different result than 0xFF), then the argument had better not be of type char. H&S must've goofed here. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint