home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!cs.utexas.edu!torn!utzoo!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: problems with atof()
- Message-ID: <1992Aug22.075915.3990@druid.uucp>
- Date: Sat, 22 Aug 1992 07:59:15 GMT
- References: <1992Aug20.125252.3451@dxcern.cern.ch>
- Organization: D'Arcy Cain Consulting
- Lines: 16
-
- nilo@atdigarfield.cern.ch (Operator) writes:
- > I have a problem withe the atof() function, you know string to double
- >conversion.
- > [...]
- > #include <stdio.h>
- > #include <ctype.h>
-
- Where's stdlib.h? Without it your compiler thinks that atof returns an
- int and does an int to float conversion on the float that atof returns.
- If your compiler doesn't have a stdlib.h then try math.h.
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-