strtold?

Corinna Vinschen vinschen@redhat.com
Tue Mar 10 19:58:00 GMT 2009


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



More information about the Newlib mailing list