From nsmart@indigo.ie  Tue Apr  7 11:33:29 1998
Received: from indigo.ie (nsmart@ts01-19.waterford-new.indigo.ie [194.125.139.82] (may be forged))
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10135
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 7 Apr 1998 11:33:24 -0700 (PDT)
          (envelope-from nsmart@indigo.ie)
Received: (from nsmart@localhost)
	by indigo.ie (8.8.8/8.8.7) id TAA04874;
	Tue, 7 Apr 1998 19:33:57 +0100 (IST)
	(envelope-from nsmart)
Message-Id: <199804071833.TAA04874@indigo.ie>
Date: Tue, 7 Apr 1998 19:33:57 +0100 (IST)
From: rotel@indigo.ie
To: FreeBSD-gnats-submit@freebsd.org
Subject: atof uses strtod, man page says it doesn't
X-Send-Pr-Version: 3.2

>Number:         6240
>Category:       docs
>Synopsis:       atof uses strtod, man page says it doesn't
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  7 11:40:00 PDT 1998
>Closed-Date:    Sat Apr 11 00:38:30 PDT 1998
>Last-Modified:  Sat Apr 11 00:38:45 PDT 1998
>Originator:     Niall Smart
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
>Environment:

>Description:

In the BUGS section of atof(3) it is stated that atof is not
currently implemented using strtod(3), this is incorrect as a quick
glance at /usr/src/lib/libc/stdlib/atof.c will show.

>How-To-Repeat:

man atof

>Fix:

*** atof.3~	Tue Apr  7 14:45:30 1998
--- atof.3	Tue Apr  7 14:44:19 1998
***************
*** 71,87 ****
  .Fn atof
  function conforms to
  .St -ansiC .
- .Sh BUGS
- This manual page represents intent instead of actual practice.
- While it is intended that
- .Fn atof
- be implemented using
- .Xr strtod 3 ,
- this has not yet happened.
- In the current system,
- .Fn atof
- translates a string in the following form to a double: a string of
- leading white space, possibly followed by a sign (``+'' or ``-''),
- followed by a digit string which may contain one decimal point (``.''),
- which may be followed by either of the exponent flags (``E'' or ``e''),
- and lastly, followed by a signed or unsigned integer.
--- 71,73 ----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 11 00:38:30 PDT 1998 
State-Changed-Why:  
fixed, thanks! 
>Unformatted:
