Quote:
|
Originally Posted by sciguy125
Shouldn't a pointer work?
|
I've never used pointers before really, so could you show an example?
The way I
think it's supposed to work (but isn't) would be to have something like...
Code:
void Function(*data);
void Function(*data)
{
printf("%s \n", data.something);
}
typedef struct{
int blah;
} typedef_example;
typedef_example data;
data.blah = 1;
Function(&data);
But it's getting a syntax error on the function prototype.