tech-userlevel archive

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

Re: why cast to char* through void*

On Wed, Jul 01, 2009 at 11:31:53PM +0000, David Holland wrote:
> The compiler is allowed to assume that two pointers of different types
> point to things that don't overlap.

But there's an exception for pointers of type char *, isn't there?  At
least, I thought I remembered it was char *, but now I suspect it's
void *.

Thor Lancelot Simon                               
    "Even experienced UNIX users occasionally enter rm *.* at the UNIX
     prompt only to realize too late that they have removed the wrong
     segment of the directory structure." - Microsoft WSS whitepaper

Home | Main Index | Thread Index | Old Index