摘要:
http://www.cnblogs.com/rainduck/archive/2013/03/28/2986352.html首先strncpy_s的函数原型如下:errno_t strncpy_s( char *strDest, size_t numberOfElements, const char *strSource, size_t count);参数就不做介绍了,容易看懂。下面就几种情况介绍。主要涉及目标内存大小numberOfElements、拷贝的大小count以及源字符串的大小src_len.1. numberOfElements > count,src_len>.. 阅读全文
posted @ 2013-04-09 18:14
赤色
阅读(422)
评论(0)
推荐(0)

浙公网安备 33010602011771号