From owner-freebsd-bugs Sun Jun 24 17:50: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 47CC837B406 for ; Sun, 24 Jun 2001 17:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5P0o1t31362; Sun, 24 Jun 2001 17:50:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AF5CC37B405 for ; Sun, 24 Jun 2001 17:41:48 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5P0fmR30692; Sun, 24 Jun 2001 17:41:48 -0700 (PDT) (envelope-from nobody) Message-Id: <200106250041.f5P0fmR30692@freefall.freebsd.org> Date: Sun, 24 Jun 2001 17:41:48 -0700 (PDT) From: Tom Garcia To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/28390: atof incorrect when stdlib.h not #include'd Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28390 >Category: bin >Synopsis: atof incorrect when stdlib.h not #include'd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 24 17:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Tom Garcia >Release: 4.3-STABLE >Organization: HiveMindSystems >Environment: FreeBSD queen.nursery.hivemind.org 4.3-STABLE FreeBSD 4.3-STABLE #7: Sun May 20 09:38:10 BST 2001 root@queen.nursery.hivemind.org:/usr/obj/usr/src/sys/QUEEN i386 >Description: atof returns random odd numbers when stdlib.h not #include'd, otherwise seems to work fine. >How-To-Repeat: /* note stdlib.h is not being included */ int main() { printf("%g\n", atof("3.95")); } >Fix: #include >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message