[tz] [PATCH 1/3] Assume C89.

Tony Finch dot at dotat.at
Fri Oct 12 17:39:11 UTC 2012


Todd C. Miller <Todd.Miller at courtesan.com> wrote:
>
> Also, I believe irealloc() is still needed if you are targetting
> C89 as the behavior where realloc(NULL, n) being equivalent to
> malloc(n) was standardized in C99, not C89.

My copy of ISO/IEC 9899:1990 says "If ptr is a null pointer, the realloc
function behaves like the malloc function for the specified size."

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6 at first.
Rough, becoming slight or moderate. Showers, rain at first. Moderate or good,
occasionally poor at first.



More information about the tz mailing list