Simon Josefsson <[EMAIL PROTECTED]> writes: > What about this instead?
Unfortunately that is buggy too, if the goal is to emulate glibc. With glibc, if p is not null, realloc (p, 0) always returns NULL. Conversely, realloc (NULL, 0) is equivalent to malloc (0) and typically returns non-NULL. It is kind of confusing.