summaryrefslogtreecommitdiff
path: root/src/xmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmalloc.h')
-rw-r--r--src/xmalloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmalloc.h b/src/xmalloc.h
index a661004..747509c 100644
--- a/src/xmalloc.h
+++ b/src/xmalloc.h
@@ -11,4 +11,7 @@ void *xcalloc(size_t nmemb, size_t size);
void *xrealloc(void *ptr, size_t size);
+__attribute__((malloc))
+char *xstrdup(const char *s);
+
#endif /* XMALLOC_H */