lua-users home
lua-l archive

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

The book "C - A Reference Manual" (Harbison & Steele) is considered by
many (including me) a good substitute for the ISO C standard. It says
about realloc: "If ptr is not null and size is zero, realloc returns a
null pointer and the old region is deallocated."

However, after the discussion in the list I checked the standard itself,
and it does not say that. So, the bug is in Lua :-( (and in the book ;-)

-- Roberto