History

perf tools: Move strlcpy() from perf to tools/lib/string.c

strlcpy() will be needed by the subcmd library. Move it to the shared tools/lib/string.c file which can be used by other tools.

Josh Poimboeuf committed 10 years ago

Commit ce990911 parent 19254594 files · +33 −23Browse files

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

Unified · Split

tools/include/linux/string.h+4−0
@@ -8,4 +8,8 @@ void *memdup(const void *src, size_t len); · 7 unmodified lines
8 8
9int strtobool(const char *s, bool *res);9int strtobool(const char *s, bool *res);
10 10
11#ifndef __UCLIBC__
12extern size_t strlcpy(char *dest, const char *src, size_t size);
13#endif
14
11#endif /* _LINUX_STRING_H_ */15#endif /* _LINUX_STRING_H_ */