Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/strtod.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* Implementation of strtod for systems with atof.
    2    Copyright (C) 1991, 1995 Free Software Foundation, Inc.
     2   Copyright (C) 1991, 1995, 2002 Free Software Foundation, Inc.
    33
    44This file is part of the libiberty library.  This library is free
     
    2222This exception does not however invalidate any other reasons why
    2323the executable file might be covered by the GNU General Public License. */
     24
     25/*
     26
     27@deftypefn Supplemental double strtod (const char *@var{string}, char **@var{endptr})
     28
     29This ISO C function converts the initial portion of @var{string} to a
     30@code{double}.  If @var{endptr} is not @code{NULL}, a pointer to the
     31character after the last character used in the conversion is stored in
     32the location referenced by @var{endptr}.  If no conversion is
     33performed, zero is returned and the value of @var{string} is stored in
     34the location referenced by @var{endptr}.
     35
     36@end deftypefn
     37
     38*/
    2439
    2540#include "ansidecl.h"
     
    6176          && (p[7] == 'y' || p[7] == 'Y'))
    6277        {
    63           *ptr = p + 7;
     78          *ptr = p + 8;
    6479          return atof (str);
    6580        }
Note: See TracChangeset for help on using the changeset viewer.