strcpy的C++实现

char *strcpy(char *strDestination,const char*strSource)
{
assert(strDestination&&strSource);
char *strD=strDestination;
while((*strDestination++=*strSource++)!='\0'
NULL;
return strD;
}

posted on 2012-03-04 21:56  siauhoo  阅读(131)  评论(0)    收藏  举报

导航