I'm new to C and am working on this project. In there, there's these lines of code...
Code:
static int
smpl_handler(manager man, void *virt_event, void *c_data, att_list attrs)
{
simple_rec_ptr loc_event = virt_event;
printing stuff
}
then in main, they have this..
Code:
term_action(man, stn_ev, format_list, smpl_handler);
term_action is a function and they're passing in the other function? smpl_handler has parameters but those aren't passed.. I'm confused as to what's going on here
also smpl_handler is defined as "static int"... but it's a function that doesn't return any values....