X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com X-Authenticated: #27081556 X-Provags-ID: V01U2FsdGVkX19p6KkWkOxpuKgIS79YrMfB5Otaw4DijD8WAl0m7P NQ+tz4KFMrnf8d From: Juan Manuel Guerrero To: djgpp-workers AT delorie DOT com Subject: Re: Bug fix for strtold Date: Tue, 8 Apr 2008 18:47:10 +0200 User-Agent: KMail/1.9.5 References: <200804081719 DOT 40163 DOT juan DOT guerrero AT gmx DOT de> <200804081530 DOT m38FUQW8027275 AT envy DOT delorie DOT com> In-Reply-To: <200804081530.m38FUQW8027275@envy.delorie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804081847.11142.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Reply-To: djgpp-workers AT delorie DOT com Am Dienstag, 8. April 2008 17:30 schrieben Sie: > > Linux parses what it can of the string, stopping at the first > non-numeric character. Thus, "123.456 E+12" parses as 123.456 for all > three functions. > > The Linux man page documents it that way; it converts "the initial > portion of the string". *endptr points to the first character after > the number parsed. > > DJGPP's documentation says the same: "This function converts as many > characters of @var{s} that look like a floating point number into that > number." > > So, just stop at the space. strtold is right, the other two need > fixing. OK