mistake in wcstombs(3)

Jeff Johnston jjohnstn@redhat.com
Wed Aug 12 02:54:00 GMT 2009


Andy Koppe wrote:
>> The wcstombs man page has a const in the wrong place:
>>
>> Â int wcstombs(const char *S, wchar_t *PWC, size_t N);
>>
>> should be
>>
>> Â int wcstombs(char *S, const wchar_t *PWC, size_t N);
>>     
>
> Also, the return type should be size_t rather than int:
>
> size_t wcstombs(char *S, const wchar_t *PWC, size_t N);
>
> (Header and source have it right.)
>
> Andy
>   
Andy,

The documentation on our web-pages is out of date.  Our current version 
of wcstombs.c used
to generate docs has the correct arguments, however, the return type was 
incorrect.  I have fixed this.
I will update the docs on the web shortly.

-- Jeff J.



More information about the Newlib mailing list