Re: [dwm] [PATCH] An experiment with X resources

From: Chris Webb <chris_AT_arachsys.com>
Date: Mon, 24 Sep 2007 20:22:53 +0100

Jukka Salmi <j+dwm_AT_2007.salmi.ch> writes:

> Hmm, why using the ternary operator? Are there systems where
> `realloc(NULL, size)' does not behave identically to `malloc(size)'?

I remember some old unix systems that segfault if you pass realloc a null
pointer! I haven't seen anything like that for a long time, though, and I
think ISO C now specifies that realloc(NULL, size) is the same as
malloc(size), so I was probably just being over-paranoid.

Cheers,

Chris.
Received on Mon Sep 24 2007 - 21:22:55 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:55:22 UTC