Go to the first, previous, next, last section, table of contents.


mblen

Syntax

#include <stdlib.h>

int mblen(const char *s, size_t n);

Description

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.

Return Value

The number of characters that comprise the next multibyte character.

Portability

ANSI, POSIX

Example

int n = mblen(string, INT_MAX);
string += n;


Go to the first, previous, next, last section, table of contents.