*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> atof (3)              
Title
Content
Arch
Section
 

ATOF(3)

Contents


NAME    [Toc]    [Back]

     atof -- convert ASCII string to double

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     double
     atof(const char *nptr);

DESCRIPTION    [Toc]    [Back]

     The atof() function converts the initial portion of the string pointed to
     by nptr to double representation.

     It is equivalent to:

	   strtod(nptr, (char **)NULL);

     The decimal point character is defined in the program's locale (category
     LC_NUMERIC).

IMPLEMENTATION NOTES    [Toc]    [Back]

     The atof() function is not thread-safe and also not async-cancel-safe.

     The atof() function has been deprecated by strtod() and should not be
     used in new code.

ERRORS    [Toc]    [Back]

     The function atof() need not affect the value of errno on an error.

SEE ALSO    [Toc]    [Back]

      
      
     atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)

STANDARDS    [Toc]    [Back]

     The atof() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1''),
     ISO/IEC 9899:1990 (``ISO C89''), and ISO/IEC 9899:1999 (``ISO C99'').


FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
ecvt OpenBSD convert double to ASCII string
fcvt OpenBSD convert double to ASCII string
gcvt OpenBSD convert double to ASCII string
wcstold FreeBSD convert string to float, double or long double
wcstof FreeBSD convert string to float, double or long double
wcstod FreeBSD convert string to float, double or long double
atof Linux convert a string to a double.
getint IRIX convert from string to integer, double, or boolean
wcstod Tru64 Convert a wide-character string to a double-precision value
wcstod IRIX convert wide-character string to double-precision number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service