X-Git-Url: https://git.cworth.org/git?p=acre;a=blobdiff_plain;f=xmalloc.h;h=d926a916de0fa0a1cbb6df5811bce15cef414305;hp=650616ae4cc55fe31b80cf9df6c597e3719f3483;hb=HEAD;hpb=ab7c095ffc2e9d6409fd2983b5462bb3d4609e60 diff --git a/xmalloc.h b/xmalloc.h index 650616a..d926a91 100644 --- a/xmalloc.h +++ b/xmalloc.h @@ -75,4 +75,7 @@ xrealloc (void *ptr, size_t size); ((size) && (unsigned) (nmemb) >= INT32_MAX / (unsigned) (size) ? NULL : \ xrealloc(ptr, (unsigned) (nmemb) * (unsigned) (size))) +char * +xstrdup (const char *s); + #endif /* XMALLOC_H */