Re: Help with understanding this please
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Sun, 31 Aug 2008 06:06:44 +0000
Mark McIntyre said:
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 on p142 may be regarded as an error, yes. Note, however,
that the actual cast is not an error, merely poor style.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- References:
- 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: C set-user-ID program wrapper for Perl script and security
- Next by Date: Re: C set-user-ID program wrapper for Perl script and security
- Previous by thread: Re: Help with understanding this please
- Next by thread: C set-user-ID program wrapper for Perl script and security
- Index(es):
Relevant Pages
|