Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 1998 19:33:57 +0100 (IST)
From:      rotel@indigo.ie
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   docs/6240: atof uses strtod, man page says it doesn't
Message-ID:  <199804071833.TAA04874@indigo.ie>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  7 11:40:00 PDT 1998
>Last-Modified:
>Originator:     Niall Smart
>Organization:
>Release:        FreeBSD 2.2.6-STABLE i386
>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 ----
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804071833.TAA04874>