Hi,
I am trying to remember how I used to automatically calculate the size of a struct, inside the struct:
for example:
struct myStruct
{
int miInt;
int miAnotherInt;
char mcChar;
int *mpiPInt;
/* SOMETHING HERE such as : */
int miSizeofmyStruct = OFFSETOF(miSizeofmyStruct) - OFFSETOF(miInt)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.