C Quirk??

Chip Salzenberg chip at ateng.UUCP
Fri Feb 12 04:10:07 AEST 1988


In article <804 at PT.CS.CMU.EDU> edw at 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."



More information about the Comp.lang.c mailing list