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