X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=xmalloc.h;fp=xmalloc.h;h=c94e14608eb2f6ea8f06f1b43eb891576e141fd8;hb=7c54e85b04f6d030ae47dd880d0391f6e35d1634;hp=9b0f6de03098c5f18cfd2225ac15c18f87d589da;hpb=addc54efb596b39b0e4e6ce219ee0f1506337475;p=pkg%2Fabook.git diff --git a/xmalloc.h b/xmalloc.h index 9b0f6de..c94e146 100644 --- a/xmalloc.h +++ b/xmalloc.h @@ -14,9 +14,11 @@ void xmalloc_set_error_handler(void (*)(int)); void * xmalloc(size_t); void * xmalloc0(size_t); void * xmalloc_inc(size_t, size_t); +void * xmalloc0_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)