]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/string.h
Move c_src dirs back to toplevel
[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 ssize_t strscpy(char *dest, const char *src, size_t count);
10 extern char *strim(char *);
11 extern void memzero_explicit(void *, size_t);
12 int match_string(const char * const *, size_t, const char *);
13
14 #define kstrndup(s, n, gfp)             strndup(s, n)
15 #define kstrdup(s, gfp)                 strdup(s)
16
17 #endif /* _LINUX_STRING_H_ */