just when i was conformable whit pointers i saw this ,
Why does the function have an * in front it's name
Code:
char *my_strcpy(char *destination , char *source)
i thought it was a function pointer but i learned that a function pointer looks like
Code:
char (*my_strcpy)(char *destination , char *source)
so my question is basically if its not a function pointer what is it?
and why is it there/what does it do?
entire code:
Code:
char *my_strcpy(char *destination , char *source)
{
char *p=destination;
while(*sourse!='\0')
{
*p++=*source++;
}
*p='\0';
return destination;
}