Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: reverted typedef, doesn't improve readability

...

Code Block
bgColor#FFCCCC
#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
bgColor#ccccff
#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;
}

...