Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: retiring gets(3) Message-ID: <1988Nov19.214209.27406@utzoo.uucp> Organization: U of Toronto Zoology References: <1988Nov14.220842.3980@utstat.uucp> <8902@smoke.BRL.MIL> <1988Nov16.184238.16375@utzoo.uucp> <8915@smoke.BRL.MIL> Date: Sat, 19 Nov 88 21:42:09 GMT In article <8915@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) 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@zoo.toronto.edu