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)


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.


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