I have a function which returns some value and some parameters:
uint8 myFunction(uint8* param1);
uint8 myFunction(uint8* param1)
{
*param1 = 3;
return 1;
}
Later in my code I would like to use the function once with returning a value like:
uint8 a;
uint8 b;
a = myFunction(b);
...
...
and once with just ignoring the parameter, like:
a = myFunction(void);
How to do this in C?