char *strcpy2(char *dst, const char *src)//此处要加const{ assert((src != NULL) && (dst != NULL));//加断言判断 char *address = dst;//方便链式连接 while ((*dst++ = *src++) != '\0')//注意结尾的'\0'字符 { ; } return address;}
Powered by: 博客园 Copyright © 2024 ChessYoung Powered by .NET 9.0 on Kubernetes