模拟实现strncat

模拟实现strncat 需要注意几点: strncat 最多 从源字符串复制len个字符到目标字符数组 strncat总是在结果后面添加’\0’,而不是用’\0’填充目标剩余空间 程序代码如下: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <assert.h> #include <string.h> char* MyS
相关文章
相关标签/搜索