[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: out of memory
- From: Edgar Toernig <froese@...>
- Date: Sat, 05 Oct 2002 16:08:39 +0200
> Here is what the man page in my RH5.2 says:
> [realloc(x,0) == free(x)]
That's what my man page says too. But on Linux the man pages
regarding libc are 2nd class citizens. They are collected
from various places (posix, ansi, *bsd, ...) and sometime do
not reflect actual behaviour.
The libc info pages are the real documentation and there's
nothing about realloc(x,0) freeing objects (it even warns
that realloc(0,s) does not work on all systems).