aboutsummaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/alloc.c b/alloc.c
index 2589e89..acd8491 100644
--- a/alloc.c
+++ b/alloc.c
@@ -32,6 +32,17 @@ erealloc(void *p, ulong n)
return np;
}
+char *
+estrdup(char *s)
+{
+ char *ns;
+
+ ns = strdup(s);
+ if(ns == nil)
+ sysfatal("strdup: %r");
+ return ns;
+}
+
Image*
eallocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col)
{