tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: intptr_t, kqueue: history/rationale of type change



> On Oct 8, 2026, at 5:54 AM, Greg Troxel <gdt%lexort.com@localhost> wrote:
> 
> I now think that intptr_t is "pointer stored in an int", not a pointer
> to an int.

The formal definition is "a signed integer type 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”.

-- thorpej



Home | Main Index | Thread Index | Old Index