#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>
char* my_strcpy(char* str1, const char* str2)
{
assert(str1 && str2);
char* ret = str1;
while (*str1++ = *str2++)
;
return ret;
}
int main()
{
char arr1[20] = { 0 };
char arr2[] = "asdsd";
my_strcpy(arr1, arr2);
printf("%s\n", arr1);
}