]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/string.h
Update bcachefs sources to ab3b6e7dd6 bcachefs: Fix pr_buf() calls
[bcachefs-tools-debian] / include / linux / string.h
1 #ifndef _TOOLS_LINUX_STRING_H_
2 #define _TOOLS_LINUX_STRING_H_
3
4 #include <stdlib.h>
5 #include <string.h>
6 #include <linux/types.h>        /* for size_t */
7
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 *);
12
13 #define kstrndup(s, n, gfp)             strndup(s, n)
14 #define kstrdup(s, gfp)                 strdup(s)
15
16 #endif /* _LINUX_STRING_H_ */