Using intptr_t instead of void*?
Is it a good idea to use intptr_t as a general-purpose storage (to hold pointers and integer values) instead of void*? No. intptr_t is not guaranteed to exist. First, as you note, it was introduced in C99. Second, implementations are not required to have an integer type big enough to hold converted pointer values without … Read more