aewl

diff util.c @ 270:dacd3f3c5823

implemented restack behavior (floats are on top in tiled mode)
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 10:18:24 +0200
parents 7b63c375d28c
children 45af6a8a0cbf
line diff
     1.1 --- a/util.c	Mon Aug 14 08:52:15 2006 +0200
     1.2 +++ b/util.c	Mon Aug 14 10:18:24 2006 +0200
     1.3 @@ -40,6 +40,15 @@
     1.4  	exit(EXIT_FAILURE);
     1.5  }
     1.6  
     1.7 +void *
     1.8 +erealloc(void *ptr, unsigned int size)
     1.9 +{
    1.10 +	void *res = realloc(ptr, size);
    1.11 +	if(!res)
    1.12 +		bad_malloc(size);
    1.13 +	return res;
    1.14 +}
    1.15 +
    1.16  void
    1.17  spawn(Arg *arg)
    1.18  {