如题所述
第1个回答 2018-12-26
char* my_strcpy(char* des,const char* source,int num)
{
char* r=des;
assert((des != NULL) && (source != NULL));
source = source + num;
while((*r++ = *source++)!='\0');
return des;
}
{
char* r=des;
assert((des != NULL) && (source != NULL));
source = source + num;
while((*r++ = *source++)!='\0');
return des;
}