#include <stdlib.h> int mblen(const char *s, size_t n);
This function returns the number of characters of string s that make up the next multibyte character. No more than n characters are checked.
If s is NULL
, the internal shift state is reset.
The number of characters that comprise the next multibyte character.
ANSI, POSIX
int n = mblen(string, INT_MAX); string += n;
Go to the first, previous, next, last section, table of contents.