模擬實現strncat

模擬實現strncat 需要注意幾點: strncat 最多 從源字符串複製len個字符到目標字符數組 strncat總是在結果後面添加’\0’,而不是用’\0’填充目標剩餘空間 程序代碼如下: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <assert.h> #include <string.h> char* MyS
相關文章
相關標籤/搜索