Re: Reading a string of unknown size
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 28 Nov 2006 07:43:31 -0500
Sundar wrote:
.... snip ...
Can u please further explain the following statement....
"Don't cast return value of malloc() in C. It can hide the
non-inclusion of it's prototype, (by way of failure to include
stdlib.h), and, on some implementations, can result in nasty
crashes during runtime."
I am unable to understand the intricacies of the above statement.
It's in the FAQ. Don't use silly abbreviations such as 'u'.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
.
- References:
- Re: Reading a string of unknown size
- From: Santosh
- Re: Reading a string of unknown size
- From: santosh
- Re: Reading a string of unknown size
- From: Sundar
- Re: Reading a string of unknown size
- Prev by Date: Re: Reading a string of unknown size
- Next by Date: Re: Reading a string of unknown size
- Previous by thread: Re: Casting malloc
- Next by thread: Re: Reading a string of unknown size
- Index(es):
Relevant Pages
|