Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 1996 07:41:11 GMT
From:      sysseh@devetir.qld.gov.au (Stephen Hocking)
To:        freebsd-hackers@freefall.FreeBSD.org
Subject:   Re: C Programming Question
Message-ID:  <199605170741.HAA05958@netfl15a.devetir.qld.gov.au>
In-Reply-To: <DrJAE1.100@devetir.qld.gov.au>
References:  <DrJAE1.100@devetir.qld.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <DrJAE1.100@devetir.qld.gov.au>,
	"Marc G. Fournier" <scrappy@ki.net> writes:
>
>Hi...
>
>	I'm trying to do something that I feel should be relatively
>brain dead to do, but can't get it to work...change an ascii string
>to a double.
>
>	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.

	Stephen

-- 
The views expressed above are not those of the Worker's Compensation Board of
Queensland, Australia.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605170741.HAA05958>