retiring gets(3)
Henry Spencer
henry at utzoo.uucp
Sun Nov 13 10:57:34 AEST 1988
In article <6927 at chinet.chi.il.us> les at chinet.chi.il.us (Leslie Mikesell) writes:
>... 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?
ANSI C came within a hairsbreadth of including a length-limited sprintf.
(There are length-limiting provisions in scanf, if you read the manual.)
If there had been any prior experience with it, it probably would have
made it. Sigh.
--
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