Re: Help with understanding this please
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 31 Aug 2008 00:21:51 +0100
mdh wrote:
may I ask why you
have not cast the return from malloc to type "struct t_node n *).
In C, you *never* have to cast the return from malloc.
K&R devote quite a discussion to this on page 142.
This is an error in K&R which the authors have acknowledged. The discussion predates ANSI C.
.
- Follow-Ups:
- Re: Help with understanding this please
- From: Richard Heathfield
- Re: Help with understanding this please
- From: mdh
- Re: Help with understanding this please
- References:
- Re: Help with understanding this please
- From: Richard Heathfield
- Re: Help with understanding this please
- From: mdh
- Re: Help with understanding this please
- Prev by Date: Re: return value?
- Next by Date: Re: Help with understanding this please
- Previous by thread: Re: Help with understanding this please
- Next by thread: Re: Help with understanding this please
- Index(es):
Relevant Pages
|