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字符串结束
相关文章
相关标签/搜索