实现方式:
char *ho_strcpy(char *dst, const char *src) {
char *p = dst;
while ((*dst++ = *src++) != '\0')
;
return p;
}
实现方式:
char *ho_strcpy(char *dst, const char *src) {
char *p = dst;
while ((*dst++ = *src++) != '\0')
;
return p;
}
转载于:https://my.oschina.net/guonaihong/blog/387294