I need a little help with manipulating pointers. Here is the problem. I have two pointers declared as follows:
Header *h1, *h2;
Header is a struct in the program I'm working on. At this point in my program h1 already points to a location in memory and h2 is currently null. Now I want to make h2 point to a particular amount of bytes past h1 in memory. However, this displacement past h1 is not an integer multiple of the amount of bytes of a Header struct. For example, I need h2 to point to exactly 32 bytes past h1, but Headers are 12 bytes, so I cannot use regular pointer arithmetic (e.g. h2 = h1 + 3 would make h2 point to 36 bytes past h1, but that's the closest I can get to 32).
Does anyone have any ideas? Thanks for any possible input or advice.