字符的区别

来源:互联网 发布:ubuntu mysql 查看表 编辑:程序博客网 时间:2024/06/01 07:49

ANSI UNICODE 通用
(char.h) (wchar.h) (tchar.h)
char wchar_t TCHAR
char * wchar_t * PTCHAR (PTSTR,LPWSTR,PWSTR,WCHAR)

printf wprintf _tprintf
scanf wscanf _tscanf

atoi _wtoi _ttoi
atol _wtol _ttol
itoa _itow _itot
ltoa _ltow _ltot

atof _wtof _tstof

strlen wcslen _tcslen
strcat wcscat _tcscat
strcpy wcscpy _tcscpy
strcmp wcscmp _tcscmp
原创粉丝点击