Re:“C is quirky, flawed, and an enormous success” – Dennis R...
by kevin_thibedeau on Sunday July 09, 2023 @04:11PM
(#36658395)
People will abuse [u]intptr_t to compare addresses from different objects. There is no guarantee that the integer value stored in such variables is representative of a linear memory space and you're supposed to treat them as opaque data but most platforms permit such comparisons. All you're permitted to do is cast a pointer into those types and cast it back to the original type.
[ Parent
| on HN ]
There are no comments on this comment yet.