#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<assert.h>
char* my_stcpy(char* dest, const char* src)
{
char* ret = dest;
assert (dest != NULL);
assert (src != NULL);
while (*dest++ = *src++)
{
;
}
return ret;
}
int main()
{
char arr1[20] = { 0 };
char arr2[] = "hello";
char* ret = my_stcpy(arr1, arr2);
printf("%s\n", ret);
return 0;
}