Integer Types For Pointer Objects

Typedef names that designate signed and unsigned integer types with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer

Include

<stdint.h>

Type Description
intptr_t Signed integer type capable of holding a pointer to void with no loss of information.
uintptr_t Unsigned integer type capable of holding a pointer to void with no loss of information.