Re:Pointers to functions
Hi,
process is currently not a pointer to a function. Replace "void *process;" in PARSE_STRUCT by "void (*process)(char*, unsigned char);" then process is a pointer to a function that returns void and get char* and unsigned char as arguments.
Function call should something like parse_list[i].process(ptr, count);
I hope this helps.
login or register to reply
|