C語言模擬實現strcpy

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <assert.h> char* mystrcpy(char* str1, char* str2) { assert(*str1); assert(*str2); //str1的每一個元素都賦值str2的值,直到str1字符串結束
相關文章
相關標籤/搜索