Date: Sat, 18 May 1996 19:10:21 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: C Programming Question Message-ID: <199605181710.TAA01088@uriah.heep.sax.de> In-Reply-To: <199605170741.HAA05958@netfl15a.devetir.qld.gov.au> from Stephen Hocking at "May 17, 96 07:41:11 am"
next in thread | previous in thread | raw e-mail | index | archive | help
As Stephen Hocking wrote: > > I've tried using atof() and strtod(), and both return the > >same answer...0. > > > > Remember to include math.h or declare atof to be double. ATOF(3) FreeBSD Programmer's Manual ATOF(3) NAME atof - convert ASCII string to double SYNOPSIS #include <stdlib.h> ^^^^^^^^^^^^^^^^^^^ double atof(const char *nptr) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605181710.TAA01088>