OSDN Git Service

* cpppch.c (cpp_valid_state): Unconditionally initialize nl.
[pf3gnuchains/gcc-fork.git] / libiberty / strtod.c
index 874e5e5..97fc933 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of strtod for systems with atof.
-   Copyright (C) 1991, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1995, 2002 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
@@ -26,7 +26,7 @@ the executable file might be covered by the GNU General Public License. */
 
 @deftypefn Supplemental double strtod (const char *@var{string}, char **@var{endptr})
 
-This ANSI C function converts the initial portion of @var{string} to a
+This ISO C function converts the initial portion of @var{string} to a
 @code{double}.  If @var{endptr} is not @code{NULL}, a pointer to the
 character after the last character used in the conversion is stored in
 the location referenced by @var{endptr}.  If no conversion is
@@ -75,7 +75,7 @@ strtod (str, ptr)
          && (p[6] == 't' || p[6] == 'T')
          && (p[7] == 'y' || p[7] == 'Y'))
        {
-         *ptr = p + 7;
+         *ptr = p + 8;
          return atof (str);
        }
       else