I have a struct declared in program.h
typedef struct{
int size;
int colour;
int h;
int w;
}model;
I use it in program.c but I also want to use it in interface.c in a function.
in interface.h I have
#include "program.h"
void updateF(model* novomodelo);
in interface.c
#include "interface.h"
void updateF(model* novomodelo){
....
}
but I'm getting
error: expected ')' before '*' token
What am I doing wrong? What is the correct way to do this? thanks