atof() in SCO UNIX DEV
Jack Cloninger
jmc at teqsoft.UUCP
Mon Oct 15 02:49:12 AEST 1990
rvdp at cs.vu.nl (=Ronald van der Pol) writes:
>tb at pemstgt.gtc.de (Tillmann Basien) writes:
>| I have SCO UNIX Version 3.2.0 with Development Kit.
>| The atof()-function does not work proberly. Is there a work-a-round
>| of this problem?
>|
> SCO UNIX has an ANSI C compiler. ANSI C's atof() is decared
> in "stdlib.h".
IMHO the problem here is documentation. The SCU Unix System V/386
Development System Programmer's Reference manual manual page for ATOF(S)
gives the following syntax description:
#include <math.h>
double atof(nptr)
char *nptr;
The entry for "atoi" and "atol" give the correct include file, which
is as Mr. van der Pol states, "stdlib.h." Mr. Basien did everything
correctly according to the manual, but was simply bitten by a
documentation error.
--
Jack Cloninger, TeqSoft, 112 US Highway 1, Tequesta, FL 33469 B-)
...uunet!comtst!teqsoft!jmc Phone: 407-747-7163 Fax: 407-747-0354
More information about the Comp.unix.questions
mailing list