A small nit-pick...
Posted Mar 19, 2008 22:52 UTC (Wed) by
vmole (guest, #111)
In reply to:
A small nit-pick... by dw
Parent article:
Who maintains dpkg?
Oops, you're correct about that. I just looked in Plauger and Brodie's "Standard C" (which is not the standard, but I think we can trust them), and they agree: it's *object* pointers that can be intraconverted with void pointers.
But the hilarious thing is this:
The types _pointer_to_char_, _pointer_to_signed_char_, _pointer_to_unsigned_char_, and _pointer_to_void_ all
share the same representation.
So "(void *) 0" is interchangeable with "(char *) 0", but not "0" or "(int *) 0".
(
Log in to post comments)