TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: Paul Edwards
date: 1996-01-14 17:42:56
subject: Re: c

PE> That is the only point - safety.  The only time you should use
PE> something like gets is when you can guarantee that the strings
PE> entered won't be bigger than the internal buffer, because you
PE> know the content of the data, because it is computer generated.
PE> And if it's computer-generated data, it's a bit suspicious that
PE> it's coming from stdin, which normally represents user input!

FA> So would you consider using editgets from snippets instead of gets() ?

Sorry, I don't know that function.  It is unlikely to be
portable.  I use fgets() from stdin.  BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

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™.