Can someone help me? I having a problem with a C program. Here it is:
In my main I call a function (func A) where two of the arguments are a second function (fun B) and "user data" (that in principle can be a single number, char or array). This "user data" is also an argument of the function B. I have everything working when the "user data" is a single integer but now I need to use it as an array. So the present working structure is like this:
static int FunB(...,void *userdata_)
{
int *a=userdata_;
...
(here I use *a that in this case will be 47)
...
}
int main()
{
int b=47;
funcA(...,FunB,&b)
}
So now I want b in the main as an array (for example {3,45} ) in order to pass more that one single "data" to the function B.
Thanks