vc 安全编程

 

1. gets_s()代替gets()

 2.strcpy_s()来代替strcpy()

3.strncpy_s()代替strncpy()

4.sprintf_s()代替sprintf()

5.CString::Format(_T("字符转"))代替CString::Format("字符转")

6.strcat_s()代替strcat()

7.fopen_s()代替fopen()

8._vsnprintf_s()代替_vsnprintf()

9._ftime64_s()代替_ftime64()

10._get_tzname ()代替_tzname()

11._snwprintf_s()代替_snwprintf()

12.mbstowcs_s()代替mbstowcs()

13.wcstombs_s()代替wcstombs()

14.wcscat_s()代替wcscat()

15._wcsupr_s()代替_wcsupr()

16._wcslwr_s()代替_wcslwr() 

17._wtoi()代替atoi()

posted @ 2018-02-09 13:43  m4sterx  阅读(172)  评论(0编辑  收藏  举报