From owner-freebsd-bugs Tue Apr 7 11:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA11823 for freebsd-bugs-outgoing; Tue, 7 Apr 1998 11:40:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA11780; Tue, 7 Apr 1998 11:40:02 -0700 (PDT) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: docs/6240: atof uses strtod, man page says it doesn't Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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