bcachefs-tools/include/linux/string.h

16 lines
422 B
C
Raw Normal View History

2017-01-08 12:13:18 +03:00
#ifndef _TOOLS_LINUX_STRING_H_
#define _TOOLS_LINUX_STRING_H_
#include <stdlib.h>
#include <string.h>
#include <linux/types.h> /* for size_t */
extern size_t strlcpy(char *dest, const char *src, size_t size);
extern char *strim(char *);
extern void memzero_explicit(void *, size_t);
int match_string(const char * const *, size_t, const char *);
2017-01-08 12:13:18 +03:00
#define kstrndup(s, n, gfp) strndup(s, n)
#endif /* _LINUX_STRING_H_ */