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