Extension to solution given to a novice

Robert Earl rearl at gnu.ai.mit.edu
Tue Apr 30 07:16:27 AEST 1991


In article <1140 at gtenmc.UUCP> csp at gtenmc.UUCP writes a very obfuscated
routine.  It doesn't work-- at least my test program couldn't get it
to work; and there weren't any comments detailing its usage.  It's in
serious need of useful comments and error-checking.  It contains a bug
involving getchar(), which was discussed here[*] earlier.

Folks, getchar() returns an int:  any valid char value, plus EOF (-1).

[*] Either here or some other newsgroup; at any rate, see K&R II
chapter 7.

--robert
--
rearl at gnu.ai.mit.edu
rearl at watnxt3.ucr.edu



More information about the Comp.lang.c mailing list