/*------------------------------------------------------------------------------------------------- 面试题之strcpy / strlen / strcat / strcmp的实现; -------------------------------------------------------------------------------------------------*/ #include <assert.h> #include <stdio.h> /*------------------------------------------------------------------------------------------------- 一、字符串拷贝strcpy; 函数strcpy的原型是 char* strcpy(char* des, const char* src); des 和 src 所指内存区域不可以重叠且 des 必须有足够的空间来容纳 src 的字符串; -------------------------------------------------------------------------------------------------*/ char* strcpy(char* des, const char* src) { assert(des && src); char* tempAddr = des; while ('