retiring gets(3)
Leslie Mikesell
les at chinet.chi.il.us
Fri Nov 11 14:05:18 AEST 1988
In article <8841 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>By the way, have you removed scanf() from your C library as well? Or
>sprintf()? Or strcpy()? They can be misused in the same way as gets().
>Let us know how happy your customers are once ALL such routines are gone.
With gets() and strcpy() a safe alternative exists. Is everyone really
going to write their own safe versions of scanf() and sprintf()? I always
wondered why the standard library versions have no way to control the
size of the output - maybe real programers like core dumps?
Les Mikesell
More information about the Comp.lang.c
mailing list