Defined in header <wchar.h> size_t mbrlen( const char* s, size_t n, mbstate_t* ps ); (since C95)
Determines the size, in bytes, of the remainder of the multibyte character whose first byte is pointed to by s, given the current conversion state ps.
This function is equivalent to the call mbrtowc(nullptr, s, n, ps?ps:&internal) for some hidden object internal of type mbstate_t, except that the expression ps is evaluated only once.
Parameters
s - pointer to an elem