Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: gets(3) nonsense Message-ID: <1988Nov19.213912.27350@utzoo.uucp> Organization: U of Toronto Zoology References: <434@auspex.UUCP> <4700029@m.cs.uiuc.edu> Date: Sat, 19 Nov 88 21:39:12 GMT In article <4700029@m.cs.uiuc.edu> kenny@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@zoo.toronto.edu