This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mistake in wcstombs(3)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]