From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,470194d770d13319 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,470194d770d13319 X-Google-Attributes: gid1014db,public X-Google-Thread: f8f3e,470194d770d13319 X-Google-Attributes: gidf8f3e,public X-Google-ArrivalTime: 1993-10-14 17:58:03 PST Xref: gmd.de comp.sys.next.bugs:906 comp.lang.c:32449 comp.sys.dec:10921 Newsgroups: comp.sys.next.bugs,comp.lang.c,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!yeshua.marcam.com!zip.eecs.umich.edu!destroyer!nntp.cs.ubc.ca!newsserver.sfu.ca!news From: bill@sfu.ca (Bill Baines) Subject: Re: clib atof() question resolved... Thanks!!! Message-ID: <1993Oct15.003244.1849@sfu.ca> Sender: news@sfu.ca Reply-To: bill@sfu.ca Organization: Simon Fraser University, Burnaby, B.C., Canada References: <1993Oct14.043648.1611@sfu.ca> Date: Fri, 15 Oct 1993 00:32:44 GMT In article <1993Oct14.043648.1611@sfu.ca> I posted the following code: > -------------------- > #include > int main() > { > double f1; > char *s1 = "1234.567"; > > f1 = atof(s1); > printf("%s, %f\n",s1, f1); > } > -------------------- Today I rec'd several replys -- most suggesting that I #include which I did -- both in the above example, and in the original code I am porting. PROBLEM SOLVED! Thanks again for your kind suggestions. Several also mentioned that I should have checked the man page for atof() which would have advised me that atof() was prototyped in stdlib.h. Interesting, that NeXT 2.1, NeXT 3.0 and Sun 4.? don't mention stdlib.h in their atof man page. Same goes for the NeXT Digital Librarian I have. (My own system has been diddled up and down a few times, so I may not have the latest man pages loaded -- perhaps I should reload the man pages from the CD-Rom). VAX/VMS help and SGI Irix do make mention of stdlib.h in their references to atof(). Anyways, lesson learned... Thanks again for your kind responses... -- Bill Baines, Operations and Tech. Support, Simon Fraser University, Vancouver, British Columbia, Canada bill@sfu.ca, (604) 291-3955, (fax 291-4242), VE7FML