摘要:
static int char_to_wchar(const char* orig_str, wchar_t *wtext, int max_length){ int nCoverLen = 0; //add by shenbo setlocale(LC_ALL, "zh_CN.utf8"); nCoverLen = mbstowcs(wtext, orig_str, max_length - 1); if(-1 == nCoverLen){ perror("mbstowcs"); return... 阅读全文