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 wrap: on
line diff
--- a/util.c	Mon Aug 14 08:52:15 2006 +0200
+++ b/util.c	Mon Aug 14 10:18:24 2006 +0200
@@ -40,6 +40,15 @@
 	exit(EXIT_FAILURE);
 }
 
+void *
+erealloc(void *ptr, unsigned int size)
+{
+	void *res = realloc(ptr, size);
+	if(!res)
+		bad_malloc(size);
+	return res;
+}
+
 void
 spawn(Arg *arg)
 {