Path: utzoo!utgpu!water!watmath!clyde!burl!codas!ateng!chip From: chip@ateng.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Re: C Quirk?? Message-ID: <186@ateng.UUCP> Date: 11 Feb 88 18:10:07 GMT References: <1653@ssc-vax.UUCP> <804@PT.CS.CMU.EDU> <23498@hi.unm.edu> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 10 In article <804@PT.CS.CMU.EDU> edw@IUS1.CS.CMU.EDU (Eddie Wyatt) writes: > >#define clearline() while (getchar() != '\n') This is seriously bad code. What if stdin reaches end of file? -- Chip Salzenberg UUCP: "{codas,uunet}!ateng!chip" A T Engineering My employer's opinions are a trade secret. "Anything that works is better than anything that doesn't."