摘要: 不调用库函数的情况下实现一个strcpy函数。 void my_strcpy(char* dest, const char* src) { int i = 0; while (src[i] != '\0') { dest[i] = src[i]; i++; } dest[i] = '\0'; // 阅读全文
posted @ 2024-10-24 20:19 WJnuHhail 阅读(11) 评论(0) 推荐(0)