21 #if !defined(WIN32) && defined(WIN64) 26 inline errno_t mbstowcs_s(
size_t *pConvertedChars,
wchar_t *wcstr,
size_t sizeInWords,
const char *mbstr,
size_t count)
29 size_t len=::mbstowcs(
NULL,mbstr,count);
33 len=::mbstowcs(wcstr,mbstr,count);
35 if(pConvertedChars!=
NULL)
43 inline errno_t wcstombs_s(
size_t *pConvertedChars,
char *mbstr,
size_t sizeInBytes,
const wchar_t *wcstr,
size_t count)
46 size_t len=::wcstombs(
NULL,wcstr,count);
50 len=::wcstombs(mbstr,wcstr,count);
52 if(pConvertedChars!=
NULL)
60 inline errno_t wctomb_s(
int *pRetValue,
char *mbchar,
size_t sizeInBytes,
wchar_t wchar)
66 ::wctomb(mbchar,wchar);
68 *pRetValue=::wctomb(mbchar,wchar);
#define _VALIDATE_RETURN_ERRCODE(expr, errorcode)
Definition: PDCerrno.h:21
UINT len
Definition: Msi_bstr.h:37
#define NULL
Definition: Null.h:10