Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdlib.h>
    double atof( const char *ptr );

Description:
    The atof function converts the string pointed to by ptr to double
    representation.  It is equivalent to


         strtod( ptr, (char **)NULL )


Returns:
    The atof function returns the converted value.  Zero is returned when
    the input string cannot be converted.  When an error has occurred,
     errno contains a value indicating the type of error that has been
    detected.

See Also:
    sscanf, strtod

Example:
    #include <stdlib.h>

    void main()
      {
        double x;

        x = atof( "3.1415926" );
      }

Classification:
    ANSI

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson