-=> 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)
|