安全的字符串拷贝strcpy_s的实现与理解

在C标准库中提供了字符串拷贝函数strcpy,而微软则为为它提供了一个更安全的版本strcpy_s,其函数原型为 errno_t __cdecl strcpy_s( char* _Destination, rsize_t _SizeInBytes, char const* _Source ); 分享下它的实现和一些个人理解     阅读全文
MistEO's avatar
MistEO 10月 21, 2020