Re:The Ten Commandments for C Programmers (1987)
by eMSF on Sunday May 24, 2020 @03:52PM
(#23294191)
Yes. Also, %p isn't non-standard, however the conversion is implementation-defined.
(The reason why I used the word technically earlier was because on all common platforms int-pointers and void-pointers – and indeed all object pointers – have identical binary representation.)
But if you cast the intptr to voidptr, the behavior is defined, right? (Besides that %p is nonstandard iirc)