Re: Weird malloc behaviour
- From: Barry Schwarz <schwarzb@xxxxxxxx>
- Date: Thu, 31 Jul 2008 13:17:32 -0700
On Thu, 31 Jul 2008 19:45:46 +0100, Ben Bacarisse
<ben.usenet@xxxxxxxxx> wrote:
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.
Is there not a one way implicit conversion adding as many const as
needed? A T* will be converted to const T* with no problem (e.g.,
strcpy). Is a T** different?
--
Remove del for email
.
- Follow-Ups:
- Re: Weird malloc behaviour
- From: Greg Comeau
- 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
- Re: Weird malloc behaviour
- From: Ben Bacarisse
- Weird malloc behaviour
- Prev by Date: Re: GCC question
- Next by Date: Re: FREAD fails on files >4GB
- Previous by thread: Re: Weird malloc behaviour
- Next by thread: Re: Weird malloc behaviour
- Index(es):
Relevant Pages
|