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
