Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 14:38:14 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   mbstowcs(3) may not return -1
Message-ID:  <4FE315B6.9020102@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

While reading the manpage of mbstowcs I noticed an error in the RETURN 
VALUES :

      The mbstowcs() function returns the number of wide characters 
converted,
      not counting any terminating null wide character, or -1 if an invalid
      multibyte character was encountered.

Since size_t is unsigned, it can't returns -1.

Cheers,

-- 
David Demelier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE315B6.9020102>