How do I make 2 modular files of this code:
Assuming I have the proper preprocessors included in main.c
// Blah.c or Blah.h
typedef struct clsBlah{
int a, b;
}BLAH;
///////////////////////
// Foo.c or Foo.h
typedef struct clsFoo{
BLAH blah;
}FOO;
void useFoo(FOO f){
f.blah.a = 0;
}
///////////////////////
That is my example code.
The 2 files would be something like:
1. Blah.c or Blah.h
2. Foo.c or Foo.h