[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: realloc buggy?
From: |
Paul Eggert |
Subject: |
Re: realloc buggy? |
Date: |
Thu, 01 Jun 2006 01:33:51 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Simon Josefsson <address@hidden> 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.
- realloc buggy?, Simon Josefsson, 2006/06/01
- Re: realloc buggy?,
Paul Eggert <=