Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

mbrlen - get number of bytes in multi-byte character

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

size_t mbrlen(const char *s, size_t n, mbstate_t *ps);

Description

mbrlen() returns the number of bytes required to complete a multi-byte character starting at the position *s. A maximum of n bytes are evaluated.

mbrlen() corresponds to the call
mbrtowc(NULL, s, n, ps!= NULL ? ps: internal)
where internal is the mbstate_t object for the function.

See mbrtowc() for a detailed description.