Hello,
I am not quite sure what you are trying to achieve, but I wonder if an array of function pointers might work. In the following example, three functions are defined, that each require an int argument.
/* Define 3-element array of function pointers */
void (*pfunc[3])(int) = {funcA, funcB, funcC};
void funcA (int)
{
}
void funcB (int)
{
}
void funcC (int)
{
}
(pfunc[0])(3); // Call funcA(3);
(pfunc[2])(0); // Call funcC(0);
Regards,
Mac