summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:18:24 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:18:24 +0200
commitd4b7a9a3735deeab639f28b5bb2f568e0dc49616 (patch)
tree9cff17d7a5d4fa2fe94b39d0d18d8d72c8429736 /util.c
parent4d67199a4bb68e5377d2fece62a83fde66c92861 (diff)
implemented restack behavior (floats are on top in tiled mode)
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.c b/util.c
index 4cc748f..2414b39 100644
--- 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)
{