JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented restack behavior (floats are on top in tiled mode)
[dwm.git] / util.c
diff --git a/util.c b/util.c
index 4cc748f..2414b39 100644 (file)
--- a/util.c
+++ b/util.c
@@ -40,6 +40,15 @@ eprint(const char *errstr, ...)
        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)
 {