[Info-vax] Whither VMS?
P. Sture
paul.nospam at sture.ch
Mon Oct 5 08:22:14 EDT 2009
In article <habq5n$pi6$3 at naig.caltech.edu>,
glen herrmannsfeldt <gah at ugcs.caltech.edu> wrote:
> Michael Kraemer <M.Kraemer at gsi.de> wrote:
> < glen herrmannsfeldt schrieb:
>
> <> Well, the C gets() function, I believe still part of the standard,
> <> has no way to know the length of the buffer. The only answer is
> <> not to use it, but it does seem fair to blame the language in that
> <> case.
>
> < To be nitpicking: it's not part of the language,
> < neither are all other functions.
> < But I agree, at least the doc's should deprecate its use.
>
> I have seen that discussed. There are some questions in K&R as
> to the library being part of the language. Most agree that it is
> for ANSI C.
>
> <> Otherwise, yes, it is up to programmers to check at the
> <> appropriate points.
>
> And to always use fgets() instead of gets().
>
Is there a handy reference to this stuff? I mean a summary of what C
calls to avoid and why (possibly detailing safe and unsafe
circumstances).
--
Paul Sture
More information about the Info-vax
mailing list