blob: e26223f1f2872fb1091d3e9352e491fce665ef5e [file] [log] [blame]
Arnaldo Carvalho de Melo4ddd3272015-11-16 11:36:29 -03001#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
Wang Nan7d85c432015-11-16 11:42:05 -03009int strtobool(const char *s, bool *res);
10
Josh Poimboeufce990912015-12-15 09:39:33 -060011#ifndef __UCLIBC__
12extern size_t strlcpy(char *dest, const char *src, size_t size);
13#endif
14
Arnaldo Carvalho de Melo4ddd3272015-11-16 11:36:29 -030015#endif /* _LINUX_STRING_H_ */