#include<stdio.h>
char *my_strcpy(char *p,char *q)
{
char *pTmp = p;
while((*p++ = *q++) != '\0');
return pTmp;
}
int main()
{
char str1[20] = "hello";
char str2[20] = "hey";
char *pResult = my_strcpy(str1, str2);
printf("%s\n", pResult);
return 0;
}