Determines the number of bytes comprising a multibyte character.
#include <stdlib.h> int mblen (const char *s, size_t n);
This function is affected by the LC_CTYPE category of the program's current locale.
x | The number of bytes that comprise the multibyte character, if the next n or fewer bytes form a valid character. |
0 | If s is NULL or a pointer to the NULL character. |
-1 | Indicates an error occurred. The function sets errno to EILSEQ - Invalid character detected. |