Re: Help with understanding this please
- From: mdh <mdeh@xxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 16:25:17 -0700 (PDT)
On Aug 30, 4:21 pm, Mark McIntyre <markmcint...@xxxxxxxxxxxxxxxxxxx>
wrote:
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.
Thank you to all who have pointed this out...much appreciated.
.
- References:
- Re: Help with understanding this please
- From: Richard Heathfield
- Re: Help with understanding this please
- From: mdh
- Re: Help with understanding this please
- From: Mark McIntyre
- Re: Help with understanding this please
- Prev by Date: Re: Help with understanding this please
- 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
|