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

From: Sylvain Bertrand <sylvain.bertrand_AT_gmail.com>
Date: Mon, 24 Sep 2007 21:28:11 +0200

http://www.opengroup.org/onlinepubs/009695399/functions/realloc.html

2007/9/24, Chris Webb <chris_AT_arachsys.com>:
> 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:28:13 UTC

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