Current location - Recipe Complete Network - Complete cookbook of home-style dishes - Call string copy function or string connection function through function pointer and menu selection.
Call string copy function or string connection function through function pointer and menu selection.
There is something wrong with your function pointer definition. It is written in the form of a function declaration.

It should read:

char *(p)(char *,const char *); //The second parameter +const here is because the second parameter of strcpy is of const type.