#include <stdio.h>
#include<assert.h>
char*my_strcpy(char* destination,const char*source)
{
assert(destination!=NULL);
assert(source!=NULL);
char* ret=destination;
while(*destination++=*source++)
{ ;
}
return ret;
}
int main()
{
char arr1[]={"abde"};
char arr2[]={"abd"};
my_strcpy(arr1,arr2);
printf("%s",arr2);
return 0;
}
09-21
292
10-06
435