Function pointer to pass function as argument

Back

Came across this example

int is_lst_term(int c);
int is_str_term(int c);
char* read_value(FILE *fp, int *c, int (*is_term)(int));

Found it nice to see an actual usage of function pointer