int (*foo)(epoll_event e, void *data);
If I name the file with cc extension, this gets accepted. With .c extension this
error: expected ‘)’ before ‘e’
I have googled and declaration seems to be valid for C. Can anyone please provide input on how to fix this?
Thanks
I’m guessing
epoll_eventis not a type name, it’s a structure tag name.In this case you need to add
struct:This page suggests so: