Hello I have another question this one regards function pointers.
I have an api function that has the following prototype.
Code:int sqlite3_exec( sqlite3*, /* An open database */ const char *sql, /* SQL to be evaluated */ int (*callback)(void*,int,char**,char**), /* Callback function */ void *, /* 1st argument to callback*/ char **errmsg /* Error msg written here */ );
the callback function takes a void pointer for the argument and returns
an integer used for sqlite return code.
I need to be able to return values from the callback function however I
am not sure how I can do that. I have heard that u can pass a function
pointer as the argument to be able to this but I am not sure how this is
If anyone can help me with this I would be greatful. I have spent a long
time trying to figure this out on my own I have to go sleep now.