头文件:
<stdlib.h>
参数说明:
pReturnValue: The number of characters converted. ----- 转换后的多字节字符串的字符数;
mbstr: The address of a buffer for the resulting converted multibyte character string. ----- char类型的字符或字符串的地址 (接收转换后的字符串的缓冲区);
sizeInBytes: The size in bytes of the mbstr buffer. ----- 用来接收转换后字符char类型缓冲区的大小(以字节记);
wcstr: Points to the wide character string to be converted. ----- wchar_t类型的字符串的地址(需要转换的字符串的缓冲区的地址);
count: The maximum number of bytes to be stored in the mbstr buffer ----- 最多可以存入mbstr的字节数。
返回值:
Zero if successful, an error code on failure.
成功返回0, 失败则返回失败代码
error code:
#define EINVAL 22
#define ERANGE 34
#define EILSEQ 42
#define STRUNCATE 80
联系客服