This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
strtold?
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 10 Mar 2009 18:54:05 +0100
- Subject: strtold?
- Reply-to: newlib at sourceware dot org
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