Bug in new K&R?

Henry Spencer henry at utzoo.uucp
Sun May 8 13:02:25 AEST 1988


> Are those two casts portable---is it guaranteed that "void *" and
> "char *" have the same internal representation? ...

Yes.  X3J11 decided to require this.  If for no other reason, because
making them different will break thousands of old programs that pass
"char *" to library functions that are now officially defined to take
parameters of type "void *".
-- 
NASA is to spaceflight as            |  Henry Spencer @ U of Toronto Zoology
the Post Office is to mail.          | {ihnp4,decvax,uunet!mnetor}!utzoo!henry



More information about the Comp.lang.c mailing list