TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: David Nugent
from: Roy McNeill
date: 1996-01-05 23:31:36
subject: gets

Hello David



 DN> Summary: gets() is dangerous - don't use it.



 KH> Thanx, I have never seen anyone elsewhere being warned

 KH> about this, so I would have continued to use that

 KH> dangerous little command :)..  fixed it up or anything like that??>..



 DN> The problem is that it was made part of the ANSI standard back in 1989 with

 DN> lots of legacy C code exiting at the time that used gets(). Consequently,

 DN> any ANSI/ISO conforming compiler must supply it.



 DN> I'm surprised you haven't seen warnings though - most compiler vendors

 DN> actually *do* say something about this in the documentation.



my BC++4.0 docs have no warnings. Somehow I'm not surprised.



Cheers



--- PPoint 1.88


* Origin: Silicon Heaven (3:711/934.16)
SEEN-BY: 711/809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.