Trouble at EOF
Blair P. Houghton
bhoughto at pima.intel.com
Tue Jun 18 04:12:23 AEST 1991
In article <1991Jun17.120927.3802 at watmath.waterloo.edu> datangua at watmath.waterloo.edu (David Tanguay) writes:
>In article <4739 at inews.intel.com> bhoughto at pima.intel.com (Blair P. Houghton) writes:
> > while ( fgets(s, sizeof s, stream) )
> > process(s);
> > if ( strlen(s) != 0 ) {
> > /* there's something left to process */
>
>Huh? 4.9.7.2: "If end-of-file is encountered and no characters have been read
[...etc...]
Urp!
Remind me:
a. To test code before I post it.
b. Not to do it this way...
Spoiler alert. If there's anything you don't
want to know, don't turn the page...
--Blair
"Uh, er, uh, Bob made me do it.
Yeah, that's it. Everyone thinks
that Agent Cooper is the only one
he's infested, but he's got me
in his clutches now, too. Yeah.
That's the ticket..."
More information about the Comp.lang.c
mailing list