Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!unsvax!arrakis!willey From: willey@arrakis.nevada.edu (James P. Willey) Newsgroups: comp.lang.c Subject: Re: problem with cc compiler Message-ID: <718@unsvax.NEVADA.EDU> Date: 23 Jul 89 22:18:25 GMT References: <712@unsvax.NEVADA.EDU> <10589@smoke.BRL.MIL> <1185@fcs280s.ncifcrf.gov> Sender: news@unsvax.NEVADA.EDU Reply-To: willey@arrakis.uucp (James P. Willey) Organization: Univ of Nevada System Computing Services - Las Vegas Lines: 33 I don't have the original error producing code anymore, but I tried to reproduce the error. Unfortunately, [or maybe fortunately] I was unable to reproduce the error. [I have since been moved to a new machine.] It was run on either 4.2 BSD or 4.3 BSD UNIX. The code was something like this: #include #include int c,f; main() { f = read(); } int read() { int index = 0; while (c == '\t' || c == ' ') c = getchar(); while (isdigit(c)) { index = index * 10 + c - '0'; c = getchar(); } return(index); } The error came in filbuf at 0x116 [from memory, so I'm not quite sure where in filbuf]. No matter where in the code getchar() was called from, the same error occurred. I wish I had saved the original code, but at the time I didn't see any reason to save code from hell :-) Thanks for the help!!!