Is there a standard pointer size declaration?
I have struct with padding in char (oops, my bad). I would like to subtract a pointer size. Do you know a standard pointer size declaration, or a standard macro for that? sizeof (void *) Do you want the C-standard answer, or the answer that works pretty much all the time? Usually, all pointers to data are the same size, which is sizeof(void*) . But since you tagged "C" and "standards", note that this is not required by the C standard. I think it is required by POSIX, and is also true on Win32, and none of the common modern architectures have instructions involving different-sized pointers. One