Hey, here's a real quick question:
How do I pass an array of structs as a pointer to a void function?
I'm in the middle of learning pointers and I'm a complete n00b at pointers. Maybe something like:
Code:struct FOO
{
int foo;
};
void I_eat_foo_too(FOO *foo[]);
int main()
{
FOO foo[5];
I_eat_foo_too(&foo); //Hmm....
}
void I_eat_foo_too(FOO *foo[])
{
foo[0]->foo = 123;
}