Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 285 Bytes

File metadata and controls

14 lines (9 loc) · 285 Bytes

Function pointer to pass function as argument

Back{: .button}

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