This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: atof()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]