Re: [hackers] [st] Add xmalloc and xrealloc wrappers || "Roberto E. Vargas Caballero"

From: Andrew Hills <>
Date: Thu, 13 Sep 2012 17:57:32 -0400

On Thu, Sep 13, 2012 at 5:40 PM, Joerg Zinke <> wrote:
> The programming language does not define what happens before
> and after program execution. Modern OS may cleanup your memory
> on exit() older ones may not.

Is there a single OS that runs X windows that does not? An initial
survey via Google search suggests not. Modern Unix is a reasonable
portability requirement.

> The name xrealloc() suggests generic realloc() replacement not a
> 'works for row and col specific case' realloc().

Fair enough. The program is small enough that someone calling
xrealloc() should be aware of how the function works, though.

--Andrew Hills
Received on Thu Sep 13 2012 - 23:57:32 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 14 2012 - 00:00:11 CEST