#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main () {
char *str = "This is yiibai.com";
wchar_t mb[100];
int len;
len = mblen(NULL, MB_CUR_MAX);
mbtowc(mb, str, len*strlen(str) );
wprintf(L"%ls /n", mb );
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265258.html