home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18482 < prev    next >
Encoding:
Text File  |  1992-12-16  |  908 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  3. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  4. Subject: Re: user input for inter
  5. Message-ID: <1992Dec16.192630.22330@klaava.Helsinki.FI>
  6. Organization: University of Helsinki
  7. References: <724433346.AA01307@csource.oz.au>
  8. Date: Wed, 16 Dec 1992 19:26:30 GMT
  9. Lines: 15
  10.  
  11. John.Gibney@f386.n632.z3.fidonet.org (John Gibney) writes:
  12. > Ej> I hear that I shouldn't use scanf in C. Is that right? What
  13. > Ej> should I use instead? 
  14. >
  15. >For simplicity, I tend to use "gets()"...  
  16.  
  17. That's right.  Avoid using one potentially dangerous function by using
  18. one that is guaranteed to be dangerous.  
  19.  
  20. Well, I guess it is simple, in a way.  You just don't have to wonder
  21. whether it is or isn't dangerous.  :)
  22.  
  23. --
  24. Lars.Wirzenius@helsinki.fi  (finger wirzeniu@klaava.helsinki.fi)
  25.    MS-DOS, you can't live with it, you can live without it.
  26.