char *_strcpy(char *strDestination,const char *strSource)//拷贝字符串
{
if(strDestination==strSource)
return strDestination;
assert((strSource!=NULL)&&(strDestination!=NULL));
char *strTmp=strDestination;
while((*strDestination++=*strSource++)!='\0');
return strTmp;
}
strcpy的实现,是否还有改进的地方?
最新推荐文章于 2024-09-12 20:51:41 发布
