Newer
Older
barebox / scripts / include / linux / string.h
@Sascha Hauer Sascha Hauer on 2 Feb 2016 315 bytes scripts: Add common header files for tools
#ifndef _TOOLS_LINUX_STRING_H_
#define _TOOLS_LINUX_STRING_H_


#include <linux/types.h>	/* for size_t */

void *memdup(const void *src, size_t len);

int strtobool(const char *s, bool *res);

#ifndef __UCLIBC__
extern size_t strlcpy(char *dest, const char *src, size_t size);
#endif

#endif /* _LINUX_STRING_H_ */