void mystrcpy(char*arr1, char*arr2)
{
while (*arr2!='\0')
{
*arr2 = *arr1;
arr2++;
arr1++;
}
*arr2 = *arr1; //把\0拷贝过去
}
int main()
{
char arr1[] = "$$$$$$$$";
char arr2[] = "bit";
mystrcpy(arr1, arr2);
printf("%s\n", arr1);
return 0;
}