strcpy 和 memcpy 的区别
源码实例:
#include<cstdio> #include<cstring> #include<cassert> char *myStrcpy(char* dest, const char* src){ if ((NULL == dest) || (NULL == src)){ return NULL; } char *strDest = dest; const char *strSrc = src; while ((*dest++ = *strSrc++) != '