...
Code Block | ||
---|---|---|
| ||
#include <stdio.h> #include <string.h> typedef char *(*strchr_fptrfp) (); strchr_fptr fp; int main(void) { char *c; fp = strchr; c = fp(12, 2); printf("%s\n", c); return 0; } |
...
Code Block | ||
---|---|---|
| ||
#include <string.h> typedef char *(*strchr_fptrfp) (const char *, int); strchr_fptr fp; int main(void) { char *c; fp = strchr; c = fp("Hello",'H'); printf("%s\n", c); return 0; } |
...