Re: Weird malloc behaviour
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 19:45:46 +0100
Barry Schwarz <schwarzb@xxxxxxxx> writes:
<snip>
... A few of the common correct uses of a cast are:
I'd add: passing a T ** (or a T *const *) to a function that wants a
const T *const * parameter.
--
Ben.
.
- Follow-Ups:
- Re: Weird malloc behaviour
- From: Barry Schwarz
- Re: Weird malloc behaviour
- References:
- Weird malloc behaviour
- From: leptone
- Re: Weird malloc behaviour
- From: Jens Thoms Toerring
- Re: Weird malloc behaviour
- From: Kenneth Brody
- Re: Weird malloc behaviour
- From: leptone
- Re: Weird malloc behaviour
- From: santosh
- Re: Weird malloc behaviour
- From: leptone
- Re: Weird malloc behaviour
- From: Barry Schwarz
- Weird malloc behaviour
- Prev by Date: Re: free()'ing restrict'ed pointers
- Next by Date: Re: free()'ing restrict'ed pointers
- Previous by thread: Re: Weird malloc behaviour
- Next by thread: Re: Weird malloc behaviour
- Index(es):