GNU/Linux |
RedHat 5.2(Apollo) |
|
![]() |
mblen(3) |
![]() |
mblen − determine the number of bytes in a character
#include <stdlib.h>
int mblen(const char *s, size_t n);
The mblen() function scans the first n bytes of the string s and returns the number of bytes in a character. The mblen() function is equivalent to
mbtowc((wchat_t *)0, s, n);
except that the shift state of the mbtowc() function is not affected.
The mblen() returns the number of bytes in a character or −1 if the character is invalid or 0 if s is a NULL string.
SVID 3, ISO 9899
mbstowcs(3), mbtowc(3), wcstombs(3), wctomb(3)
![]() |
mblen(3) | ![]() |