retiring gets(3)

Henry Spencer henry at utzoo.uucp
Sun Nov 20 07:42:09 AEST 1988


In article <8915 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>>Well, "utterly safe" if you're always very careful that part A of your
>>program preserves the length limits that part B is relying on...
>
>Why work harder when gets() does exactly what one needs?

What "work harder"?  It's a few more characters of typing.

>Another safe use is for small "one-shot" test programs etc...

Agreed, provided one is careful to destroy those programs after their
one shot is fired.  Such programs have a depressing tendency to persist,
and even to end up in 4BSD distributions... :-(
-- 
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