SYNOPSIS
#include <stdlib.h>
int mbtowc(wchar_t *pwc, const char *s, size_t n);
int mbtowc_l(wchar_t *pwc, const char *s, size_t n, locale_t locale);
DESCRIPTION
The
PARAMETERS
- pwc
-
Is the address of a wide character, type wchar_t, to receive the UNICODE equivalent of s.
- s
-
Points to the multibyte character to be converted to UNICODE.
- n
-
Is the maximum width, in bytes, for which to scan s for a valid multibyte sequence. Regardless of the value of n, no more than MB_CUR_MAX (or MB_CUR_MAX_L) bytes are examined.
- locale
-
Is a locale_t perhaps returned by
newlocale() or LC_GLOBAL_LOCALE or 0 for the current thread locale set withuselocale() .
RETURN VALUES
If successful,
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:
mblen() ,mblen_l() ,mbstowcs() ,mbstowcs_l() ,newlocale() ,setlocale() ,wctomb() ,wctomb_l()
PTC MKS Toolkit 10.5 Documentation Build 40.