Open System Services Library Calls Reference Manual (H06.03+)

OSS Library Calls (i - m) mbtowc(3)
If the character encoding is not shift-state dependent, mbtowc() returns a value of 0
(zero).
The return value is never greater than the value specied by the n parameter or the value of the
MB_CUR_MAX macro.
ERRORS
If the following condition occurs, the mbtowc) function sets errno to the corresponding value.
[EILSEQ] The s parameter points to an invalid multibyte character or a multibyte character
with more the n bytes.
RELATED INFORMATION
Functions: mblen(3), wctomb(3), mbstowcs(3), wcstombs(3).
527187-003 Hewlett-Packard Company 499