9 #ifndef SQUID_COMPAT_XSTRING_H 10 #define SQUID_COMPAT_XSTRING_H 34 #define strdup(X) xstrdup((X)) 41 char *
xstrncpy(
char *dst,
const char *src,
size_t n);
56 char *
xstrndup(
const char *s,
size_t n);
61 #define strndup(X) xstrndup((X)) char * xstrndup(const char *s, size_t n)
char * xstrdup(const char *s)
char * xstrncpy(char *dst, const char *src, size_t n)