gets(3) nonsense
Henry Spencer
henry at utzoo.uucp
Sun Nov 20 07:39:12 AEST 1988
In article <4700029 at m.cs.uiuc.edu> kenny at m.cs.uiuc.edu writes:
>>... It would be trivial to write a function to do
>>this, and you only have to do it once...
>
>How convenient that the deigners of the stardard C library have done
>this for us already. It's called fgets().
Note also that a good implementation of fgets (the ones in many old C
libraries are not terribly good) will almost certainly be much faster
than the quick ten-minute hack that you might throw together. Never
re-invent the wheel unnecessarily; yours may have corners.
--
Sendmail is a bug, | Henry Spencer at U of Toronto Zoology
not a feature. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list