mbstowcs() contradiction
Gabor Kovesdan
gabor at FreeBSD.org
Mon Jun 1 22:07:04 UTC 2009
Hello,
I've just found a contradiction in the mbstowcs() man page. It says:
"The mbstowcs() function returns ........ or -1 if an invalid multibyte
character was encountered."
It is impossible, because its return value is size_t, which is a signed
type. Looking on the online documentaton, I think it should return
(size_t)-1 on error. I've also looked at the code and I think our
implementation is standard-compliant, but could someone take another
look, please? If someone can acknowledge I'm right, I'll update the man
page.
Thanks,
--
Gabor Kovesdan
FreeBSD Volunteer
EMAIL: gabor at FreeBSD.org .:|:. gabor at kovesdan.org
WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
More information about the freebsd-standards
mailing list