[TUHS] v7 K&R C

ron at ronnatalie.com ron at ronnatalie.com
Sat May 16 06:01:23 AEST 2020

Unfortunately, if c is char on a machine with unsigned chars, or it’s of type unsigned char, the EOF will never be detected.




*	while ((c = getchar()) != EOF) if (c == '\n') { /* entire record is now there */


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200515/40c967aa/attachment.htm>

More information about the TUHS mailing list