okay guys, here goes...
I am looking at this example code I downloaded...
-------------------------------------------------
---------------------------------------------------Code:struct sample **kam = NULL; void sample_init (struct sample *kam) { kam->window=0; kam->photo=0; }
Now, kam is declared as a pointer to a pointer of structure sample.
So far, so good.
But, in the function declaration of sample_int, we now find kam again, but this time being declared and passed as only a pointer to structure sample.
I don't think this sample is correct. How can kam be a pointer to a pointer and also just be a pointer? Kam can only hold one address, but not two right? Isn't this example wrong?