[Info-vax] Whither VMS?

glen herrmannsfeldt gah at ugcs.caltech.edu
Sun Oct 4 23:45:59 EDT 2009


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().

-- glen



More information about the Info-vax mailing list