Hi, I'm trying to understand how to pass typedef structures to a function. The following is how I'm trying to do it, but it doesn't work (parse errors). What am I doing wrong?
Code:#include <stdio.h>
void func(test, test); // parameter name warning occurs here
int main()
{
typedef struct{
int a, b, c;
} test;
test here, there;
//.........
func(here, there);
return 0;
}
void func(test here, test there) // parse error occurs here
{
//........
}