不用c语言库函数实现;
char *strcpy(char *strDest, const char *strSrc)
{
assert( (strDest != NULL)&&(strSrc != NULL) );
char *address = strDest;
while ( (*strDest++ = *strSrc++) != '\0' )
{
;
}
return address;
}
不用c语言库函数实现;
char *strcpy(char *strDest, const char *strSrc)
{
assert( (strDest != NULL)&&(strSrc != NULL) );
char *address = strDest;
while ( (*strDest++ = *strSrc++) != '\0' )
{
;
}
return address;
}