1. 字符串的拷贝strcpy的实现
1 2 3 char *myStrcpy(char *dst,char *src) 4 { 5 char *ret = dst; 6 if(dst == NULL || src == NULL) 7 { 8 return NULL; 9 } 10 while((*dst++ = *src++)!= '