This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
wcstombs
- From: Klaas Gadeyne <klaas dot gadeyne at fmtc dot be>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 4 Aug 2006 13:07:35 +0200 (CEST)
- Subject: [ECOS] wcstombs
In the single Unix specification of the wcstombs function
(e.g. <http://opengroup.org/onlinepubs/007908799/xsh/wcstombs.html>),
it is said that
<quote>
If s is a null pointer, wcstombs() returns the length required to
convert the entire array regardless of the value of n, but no values
are stored. function returns the number of bytes required for the
character array.
</quote>
However, looking at its ecos (and the newlib) version, it seems
to me that the implementation in
packages/language/c/libc/i18n/current/src/
(<http://exr.lunn.ch/http/source/packages/language/c/libc/i18n/current/src/wcstombs.cxx>
does not provide the above described behaviour, more specifically, if
n is zero, the return value will be zero too, regardless of the value
of s.
Did I miss something?
Regards,
Klaas
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss