6.17.5 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>

TypeDescription
intptr_tSigned integer type capable of holding a pointer to void with no loss of information.
uintptr_tUnsigned integer type capable of holding a pointer to void with no loss of information.