X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=xmalloc.h;h=7351f123a54baa7f5b5af60f8afc82a3092a0658;hb=7b419d22894bbe23f7c78d864b921a9a74e3fb5a;hp=61ea5b5c69df1e6720093961dacfe77b1dc6bec3;hpb=7b4ce3288538a5f29c2293f43b177df86b44284c;p=pkg%2Fabook.git diff --git a/xmalloc.h b/xmalloc.h index 61ea5b5..7351f12 100644 --- a/xmalloc.h +++ b/xmalloc.h @@ -16,6 +16,8 @@ void * xmalloc0(size_t); void * xmalloc_inc(size_t, size_t); void * xrealloc(void *, size_t); void * xrealloc_inc(void *, size_t, size_t); +char * xstrdup(const char *s); +char * xstrndup(const char *s, size_t); #define xfree(ptr) do { free(ptr); ptr = NULL; } while(0)