SYNOPSIS
#include <stdlib.h>
int mblen(const char *s, size_t n);
#include <stdlib.h>
#include <locale.h>
int mblen_l(const char *s, size_t n, locale_t locale);
DESCRIPTION
The
PARAMETERS
- s
-
Pointer to multibyte character.
- n
-
Maximum number of bytes to examine for a multibyte character encoding. Regardless of the value of n, no more than MB_CUR_MAX (or MB_CUR_MAX_L) bytes are scanned.
- locale
-
Is a locale_t perhaps returned by
newlocale() or LC_GLOBAL_LOCALE or 0 for the current thread locale set withuselocale() .
RETURN VALUES
The functions
CONFORMANCE
MULTITHREAD SAFETY LEVEL
MT-Safe, with exceptions.
The
The function
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
mbtowc() ,mbtowc_l() ,newlocale() ,setlocale() ,strlen() ,wctomb() ,wctomb_l()
PTC MKS Toolkit 10.4 Documentation Build 39.