#include<stdio.h>
#include<string.h>
#include<assert.h>
char* My_strcpy(char* p1, const char* p2)
{
assert(p1);
assert(p2);
char* ret = p1;
while (*p2 != '\0')
{
*p1 = *p2;
p1++;
p2++;
}
*p1 = '\0';
return ret;
}
int main()
{
char arr1[30] = { 0 };
char arr2[] = "Test have successed!";
My_strcpy(arr1,arr2);
printf("%s", arr1);
return 0;
}