I want to use a typedef defined in another file, but not sure how to do this; would also like to do the same thing for enums. How do I go about doing this?
main.c
Code:
void main(){
...
//Create DATA type variables here
DATA d1;
DATA d2;
...
}
second.c
Code:
struct dat{
int var1;
int var2;
};
typedef struct data DATA;