I have a union named un.
I have a un* named up that is the address of a un named u1 (bear with me).
The pointer works fine, but I can't pass it to a function. Any alternatives?
Here is some code to illustrate (please tell me if there is some stupid mistake):
union un
{
bool a;
int b;
char etc;
}u1;
un * up= &u1;
void randomFunctionName (un* up)
{
up->a=true
}