SYNOPSIS
#include <stdlib.h>
size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n);
#include <stdlib.h>
#include <locale.h>
size_t mbstowcs_l(wchar_t *pwcs, const char *s, size_t n, locale_t locale);
DESCRIPTION
The
PARAMETERS
- pwcs
-
Is the address of an array of wide characters, type wchar_t, to receive the UNICODE equivalent of multibyte string s.
- s
-
Points to a null-terminated multibyte string to be converted to UNICODE.
- n
-
Is the maximum number of characters to convert and store in pwcs.
- 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() ,mbtowc() ,mbtowc_l() ,newlocale() ,setlocale() ,wcstombs() ,wcstombs_l()
PTC MKS Toolkit 10.5 Documentation Build 40.