> 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