I have defined a macro that calculates the offset of a structure to any of the structure field. The Code is as follow:
#define offset(struct_name, fld_name) \\ (u