At 2003-12-07 18:19:26 +0100, [EMAIL PROTECTED] wrote: > > There is a new type in C99 for "integer that can hold a pointer > value". I think it's called intptr_t resp. uintptr_t, but I don't have > the standard around.
Yes, they're called intptr_t and uintptr_t (§7.18.1.4), but they're both optional types. I note in passing that the xor-trick is one of the pointer-hiding tricks that are the bane of garbage collectors for C (the other common example being writing a pointer to a file and reading it back). -- ams ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly