A
Ann O'Nymous
How do I do this:
typedef struct foobar {
int a;
char b[16];
float c;
} my_struct;
#define my_structsize sizeof(struct foobar)
I just want to define my_structsize to be the size of the structure
defined in the typdef (one int+16 chars+1 float)
This is just a syntax issue where I can't seem to come up with the right
combination (tried sizeof(my_struct) and several combos)
typedef struct foobar {
int a;
char b[16];
float c;
} my_struct;
#define my_structsize sizeof(struct foobar)
I just want to define my_structsize to be the size of the structure
defined in the typdef (one int+16 chars+1 float)
This is just a syntax issue where I can't seem to come up with the right
combination (tried sizeof(my_struct) and several combos)