摘要:
char *strcpy2(char *dst, const char *src)//此处要加const{ assert((src != NULL) && (dst != NULL));//加断言判断 char *address = dst;//方便链式连接 while ((*dst++ = *src++) != '\0')//注意结尾的'\0'字符 { ; } return address;} 阅读全文
posted @ 2011-08-24 09:52 ChessYoung 阅读(157) 评论(0) 推荐(0) 编辑