bst_char_iterate(t,print_char);
part causes the error. Your
print_char
function signature differs from the expected one as in the error.
Quote:
pfbst_char.h:26:6: note: expected ‘char (*)(char)’ but argument is of type ‘void (*)(char)’
If you change
print_char
's return type to char and return a char in the function, the compiler will stop complaining :)
char print_char(char c) {
return 0;
}