summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-11-17 12:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2016-11-17 12:01:10 +0000
commit442e49f51c07a1fc508c6889d77065b8b4894893 (patch)
tree739cfe7abbb0f08b88aaa0c452611b2559976521 /xmalloc.h
parent759953cb8d6e8ac2e95f831a320f249a5258d5a9 (diff)
parent3cf19d6dd0900dd5bbd78594af308ee88b109756 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 61f8adef..dd254e7b 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -28,6 +28,7 @@ void *xcalloc(size_t, size_t);
void *xrealloc(void *, size_t);
void *xreallocarray(void *, size_t, size_t);
char *xstrdup(const char *);
+char *xstrndup(const char *, size_t);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));