Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!aplcen!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Must sizeof(int) exceed sizeof(char) in hosted environments? Message-ID: <10908@smoke.BRL.MIL> Date: 1 Sep 89 04:01:40 GMT References: <1989Aug29.204254.3307@sq.sq.com> <1713@cbnewsl.ATT.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <1713@cbnewsl.ATT.COM> dfp@cbnewsl.ATT.COM (david.f.prosser) writes: >At this point, I'd be happier if there were a requirement that EOF be >distinct from all other values possible to return from fgetc! The very issue you discussed arose at an X3J11 meeting, in off-line discussion with Jervis, myself, and someone else (as I recall). My dim recollection is that we decided EOF didn't have to be distinct if sizeof(int)==sizeof(char), and so far as we could tell the latter is allowed. This agrees with your conclusions. I would rather construe the description of EOF as requiring that it be distinct, for the obvious reasons. Yet another matter for the "interpretations" phase?