1 #ifndef _TOOLS_LINUX_STRING_H_
2 #define _TOOLS_LINUX_STRING_H_
6 #include <linux/types.h> /* for size_t */
8 extern size_t strlcpy(char *dest, const char *src, size_t size);
9 extern char *strim(char *);
10 extern void memzero_explicit(void *, size_t);
11 int match_string(const char * const *, size_t, const char *);
13 #define kstrndup(s, n, gfp) strndup(s, n)
14 #define kstrdup(s, gfp) strdup(s)
16 #endif /* _LINUX_STRING_H_ */