21 #ifndef __EKG_XMALLOC_H 22 #define __EKG_XMALLOC_H 24 #include <sys/types.h> 28 #define EXPORTNOT __attribute__ ((visibility("hidden"))) 30 void *
xcalloc(
size_t nmemb,
size_t size);
33 void xfree(
void *ptr);
34 void *
xrealloc(
void *ptr,
size_t size);
37 void *
xmemdup(
void *ptr,
size_t size);
40 char *
xstrcat(
char *dest,
const char *src);
42 int xstrcmp(
const char *s1,
const char *s2);
43 char *
xstrcpy(
char *dest,
const char *src);
46 char *
xstrncat(
char *dest,
const char *src,
size_t n);
47 int xstrncmp(
const char *s1,
const char *s2,
size_t n);
48 int xstrncasecmp(
const char *s1,
const char *s2,
size_t n);
50 char *
xstrstr(
const char *haystack,
const char *needle);
51 char *
xstrcasestr(
const char *haystack,
const char *needle);
59 char *
saprintf(
const char *format, ...);
int xstrncmp(const char *s1, const char *s2, size_t n)
Definition: xmalloc.c:238
void xfree(void *ptr)
Definition: ekg_hash_benchmark.c:29
void * xmalloc(size_t size)
Definition: ekg_hash_benchmark.c:25
char * xstrrchr(const char *s, int c)
Definition: xmalloc.c:258
char * xstrncat(char *dest, const char *src, size_t n)
Definition: xmalloc.c:233
char * xstrcpy(char *dest, const char *src)
Definition: xmalloc.c:213
void * xmalloc2(size_t size)
void * xrealloc(void *ptr, size_t size)
Definition: xmalloc.c:116
char * vsaprintf(const char *format, va_list ap)
Definition: xmalloc.c:168
char * xstrstr(const char *haystack, const char *needle)
Definition: xmalloc.c:177
size_t xstrlen(const char *s)
Definition: xmalloc.c:223
void * xmemdup(void *ptr, size_t size)
Definition: xmalloc.c:125
int xstrncasecmp_pl(const char *s1, const char *s2, size_t n)
Definition: xmalloc.c:228
int xstrcasecmp(const char *s1, const char *s2)
Definition: xmalloc.c:187
char * xstrdup(const char *s)
Definition: ekg_hash_benchmark.c:28
void * xcalloc(size_t nmemb, size_t size)
Definition: xmalloc.c:63
char * saprintf(const char *format,...)
Definition: stuff.c:2369
char * xstrndup(const char *s, size_t n)
Definition: xmalloc.c:136
char * xstrchr(const char *s, int c)
Definition: xmalloc.c:197
int xstrncasecmp(const char *s1, const char *s2, size_t n)
Definition: xmalloc.c:248
int xstrcmp(const char *s1, const char *s2)
Definition: ekg_hash_benchmark.c:27
char * xstrcat(char *dest, const char *src)
Definition: xmalloc.c:192
char * xstrcasestr(const char *haystack, const char *needle)
Definition: xmalloc.c:182