home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!dld54032
- From: dld54032@uxa.cso.uiuc.edu (Dave Dribin)
- Subject: "the `gets' function is unreliable and should not be used"??!!!
- Message-ID: <C058sJ.Fuu@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Thu, 31 Dec 1992 21:53:06 GMT
- Lines: 26
-
- I was trying to compile some programs that I had written for class on
- a Sun Sparc and compile using gcc, and I kept getting this error that
- the `gets' function is unreliable. How can it be unreliable! It won't
- even work with this simple program:
- #include <stdio.h>
-
- main() {
- char str[256];
-
- gets(str);
- puts(str);
-
- return(0);
- }
-
- I am using SLS Linux v99.0. Did I install anything wrong, or is the function
- really unreliable. I would think that all the standard ASNI functions would
- be reliable! Thanx in andvance, and happy new year...
-
- Dave
-
- --
- Dave "Dribs" Dribin |"No you don't! You can't take it from me now!
- dribs@uiuc.edu | I've had this ice cream bar since I was a
- "Happy, Happy!! Joy, Joy!!" | child... People... Always trying to take it
- | from me... Why don't they leave me ALONE?!!!"
-