Oct. 13, 2012
4:39 a.m.
Todd C. Miller <Todd.Miller@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@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.