TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ANTHONY TIBBS
from: MANISH MALIK
date: 1998-01-31 22:36:00
subject: C++ Saveding stuff

-=> Remebering what Anthony Tibbs wrote to Manish Malik <=-
MM>> char s[40];
MM>> gets(s);
MM>> puts("\r\nThis was the string you entered : "); puts(s);
 AT> NO!  Never!  Bad!    You've allocated 40 bytes,
 AT> but the user could easily type 4000.
okay, hows this piece of code ??
char *s;
gets(s);
puts("\r\n Whether you typed 40 or 4000, I have it all ! Here - ");
puts(s);
Okay now ? :-)
   MANISH MALIK
   blaster@poboxes.com
--- Terminate 5.00/Pro 
                                       
--- Maximus 3.01
---------------
* Origin: Delhi Online -=[New Delhi/India]=- (6:606/26)

SOURCE: echomail via exec-pc

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