atof()

Andreas Jaeger aj@suse.de
Mon Aug 19 11:13:00 GMT 2002


Reinaldo Nolasco Sanches <r_linux@yahoo.com> writes:

> I have a problem with atof()... and I don't understand because it...

This is the wrong group for such kind of questions.  I guess this
might be even answered in the C FAQ or a good C book.

If you compile your program with warnings enabled, you'll get:
$ gcc -Wall t.c
t.c: In function `main':
t.c:10: warning: implicit declaration of function `atof'

Without a prototype the function is declared as returning int instead
of doubles.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc mailing list