This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: strtold?
- From: "Howland Craig D (Craig)" <howland at LGSInnovations dot com>
- To: <newlib at sourceware dot org>
- Date: Tue, 10 Mar 2009 15:56:45 -0400
- Subject: RE: strtold?
- References: <20090310175405.GB9322@calimero.vinschen.de>
Corinna:
I don't have any answers as to why strtold is not generally
available, but I vote that it should be made so (at least after
adequate testing), as long double support is almost completely
lacking.
This raises some general questions that I have regarding long
double. This email will be followed by another with a new subject
("long double (was "strtold?")") to raise them, since perhaps it is
best to track them separately.
Craig
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Corinna Vinschen
Sent: Tuesday, March 10, 2009 1:54 PM
To: newlib@sourceware.org
Subject: strtold?
Hi,
I'm just implementing wscanf and friends. While I'm at it, I'm
stumbling over the missing wcstold functionality. Strange enough,
newlib has a strtold function in libc/stdlib/ldtoa.c. However, that
function is actually called _strtold and not mentioned in the header
files at all. But it's used in vfscanf.c.
Here's the question: Why is strtold not "officially" exported when
the function is actually available? Is there any good reason?
If not, I'd suggest to declare strtold in stdlib.h. Then I could
implement wcstold along the lines of the current wcstod function and
we would get long double support in wscanf more or less for free.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat