lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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).

Ciao, ET.