X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/22c17699961b61390b0edf1528ac584f4dee3b8d..aee6df6eb688c812a34d9a363dda978f06095003:/xstd.c diff --git a/xstd.c b/xstd.c index e1e5262d..c22a0ff2 100644 --- a/xstd.c +++ b/xstd.c @@ -1,4 +1,4 @@ -/* $Id: xstd.c,v 1.11 2009/03/16 23:37:28 kristaps Exp $ */ +/* $Id: xstd.c,v 1.13 2009/03/23 14:22:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -21,7 +21,12 @@ #include #include -#include "private.h" +#include "libmdoc.h" + +#ifdef __linux__ +extern size_t strlcpy(char *, const char *, size_t); +extern size_t strlcat(char *, const char *, size_t); +#endif /* * Contains wrappers for common functions to simplify their general @@ -59,15 +64,6 @@ xrealloc(void *ptr, size_t sz) return(p); } -void * -xcalloc(size_t num, size_t sz) -{ - void *p; - - if (NULL == (p = calloc(num, sz))) - err(EXIT_FAILURE, "calloc"); - return(p); -} char * xstrdup(const char *p)