mbstowcs(3) may not return -1

From: David Demelier <demelier.david_at_gmail.com>
Date: Thu, 21 Jun 2012 14:38:14 +0200
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
Received on Thu Jun 21 2012 - 10:38:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:28 UTC