version 1.12, 2009/03/19 16:40:49 |
version 1.13, 2009/03/23 14:22:11 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
#include "private.h" |
#include "libmdoc.h" |
|
|
#ifdef __linux__ |
#ifdef __linux__ |
extern size_t strlcpy(char *, const char *, size_t); |
extern size_t strlcpy(char *, const char *, size_t); |
Line 64 xrealloc(void *ptr, size_t sz) |
|
Line 64 xrealloc(void *ptr, size_t sz) |
|
return(p); |
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 * |
char * |
xstrdup(const char *p) |
xstrdup(const char *p) |