Re: when can realloc fail?
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Mon, 02 Apr 2007 21:24:58 -0400
Joe Wright wrote:
.... snip ...
I have posed a question a little upthread: Given ptr points to an
area to be freed, and then 'realloc(ptr, 0);'. Granted that realloc
can return NULL or not, will the allocation of ptr be freed? I'd
like to think so.
You don't know, which is one more reason to consider such
allocaters to be brain-dead.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: when can realloc fail?
- From: Eric Sosman
- Re: when can realloc fail?
- From: pete
- Re: when can realloc fail?
- References:
- when can realloc fail?
- From: banansol
- Re: when can realloc fail?
- From: santosh
- Re: when can realloc fail?
- From: banansol
- Re: when can realloc fail?
- From: santosh
- Re: when can realloc fail?
- From: Old Wolf
- Re: when can realloc fail?
- From: pete
- Re: when can realloc fail?
- From: Joe Wright
- when can realloc fail?
- Prev by Date: Re: Equivalent malloc with calloc
- Next by Date: Re: The weird while and If
- Previous by thread: Re: when can realloc fail?
- Next by thread: Re: when can realloc fail?
- Index(es):
Relevant Pages
|
|