History

tools: Adopt memdup() from tools/perf, moving it to tools/lib/string.c

That will contain more string functions with counterparts, sometimes verbatim copies, in the kernel.

Arnaldo Carvalho de Melo committed 11 years ago

Commit 4ddd3271 parent 9a13c656 files · +36 −19Browse files

Showing the changes to tools/include/linux/string.h (1 of 6 files). Show all

Unified · Split

tools/include/linux/string.h+9−0
@@ -0,0 +1,9 @@
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
9#endif /* _LINUX_STRING_H_ */