mistake in wcstombs(3)

Andy Koppe andy.koppe@gmail.com
Tue Aug 11 23:40:00 GMT 2009


> 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



More information about the Newlib mailing list