What code have you written in c that is not defined by either c89 or c99 standards?
Specifically, I am looking for techniques like using pointer manipulation to move within a struct instead of using the member operator. This works fine on most compilers, but the compiler is free to add buffer space between struct members, so will not always work correctly.
For example:
struct SampleStruct{
int member1;
int member2;
}thisStruct;
and then in main...
struct SampleStructPtr* thisStructPtr = &thisStruct;
*(int*)thisStructPtr = 5;
thisStructPtr = (void*)thisStructPtr + sizeOf(int);
*(int*)thisStructPtr = 7;
This is not guaranteed to work under the standard spec.
This is for a research project, so any help would be appreciated!