]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - tools/include/linux/string.h
tools: Introduce str_error_r()
[mirror_ubuntu-hirsute-kernel.git] / tools / include / linux / string.h
CommitLineData
4ddd3274
ACM
1#ifndef _TOOLS_LINUX_STRING_H_
2#define _TOOLS_LINUX_STRING_H_
3
4
5#include <linux/types.h> /* for size_t */
6
7void *memdup(const void *src, size_t len);
8
7d85c434
WN
9int strtobool(const char *s, bool *res);
10
ce990917
JP
11#ifndef __UCLIBC__
12extern size_t strlcpy(char *dest, const char *src, size_t size);
13#endif
14
c8b5f2c9
ACM
15char *str_error_r(int errnum, char *buf, size_t buflen);
16
4ddd3274 17#endif /* _LINUX_STRING_H_ */