delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/12/09:02:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Tim Prince <tprince AT computer DOT org>
Reply-To: tprince AT computer DOT org
To: "=?iso-8859-1?q?Herv=E9=20Le?= Net" <hlenet AT hotmail DOT com>,
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: <F16200lfepHjon60TMZ00005960 AT hotmail DOT com>
In-Reply-To: <F16200lfepHjon60TMZ00005960@hotmail.com>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019