Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" From: Tim Prince Reply-To: tprince AT computer DOT org To: "=?iso-8859-1?q?Herv=E9=20Le?= Net" , cygwin AT cygwin DOT com Subject: Re: 1.3.12-2 : atof() always returns 0 Date: Fri, 12 Jul 2002 06:02:12 -0700 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020712130213.E59A42CC67@inet1.ywave.com> On Friday 12 July 2002 01:32, Hervé Le Net wrote: > Hi, > > The atof() function, compiled with gcc, always returns 0. > > Example : > > f = atof("123.456"); > printf("%f\n", f); > > Result : > 0.000000 > > Regards, > H. Le Net > Do you mean you compiled atof(), or that you compiled some code fragment of your own which calls atof(), possibly without employing the correct headers? gcc conforms to the C standard, not to the usual practice prior to 13 years ago. -- Tim Prince -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/