Date: Sun, 24 Jun 2001 18:20:01 -0700 (PDT) From: Gregory Bond <gnb@itga.com.au> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/28390: atof incorrect when stdlib.h not #include'd Message-ID: <200106250120.f5P1K1j36322@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/28390; it has been noted by GNATS. From: Gregory Bond <gnb@itga.com.au> To: Tom Garcia <veri2@bigfoot.com> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/28390: atof incorrect when stdlib.h not #include'd Date: Mon, 25 Jun 2001 11:10:31 +1000 > atof returns random odd numbers when stdlib.h not #include'd, otherwise seems > to work fine. Calling std library functions (especially those returning anything except "int") without the appropriate header include is a bug in your program, and has nothing to do with FreeBSD or any other OS. You would get similar errors from a Windows C compiler. This particular instance is documented in the SYNOPSIS section of the man page for atof. This bug would also have been picked up by compiling with the "-Wall" flag. This PR can be closed. 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?200106250120.f5P1K1j36322>