Original Post
So i have a piece of code like
function1(int param1, int param2, int param3, void *userData);
bool err = false;
Result res = function 1(x,y,z,&err)
....
.....
....
if(err == false)
...
Ive never seen this use of a void pointer parameter type. How does the function return a true or false to that parameter without knowing what type it is?
function1(int param1, int param2, int param3, void *userData);
bool err = false;
Result res = function 1(x,y,z,&err)
....
.....
....
if(err == false)
...
Ive never seen this use of a void pointer parameter type. How does the function return a true or false to that parameter without knowing what type it is?