gets limits?

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Apr 26 15:28:26 AEST 1989


In article <9300001 at scsmo1.UUCP> tim at scsmo1.UUCP writes:
>What does ANSI say about gets.  It seem to me that there is NO way to
>figure out how big to make the buffer for the beast.

Yes, that's right.

>what rules should be followed with gets[?]

Use it only when you know that the buffer will not be overrun.
In other case, use something like fgets().



More information about the Comp.lang.c mailing list