History

tools lib string: Adopt prefixcmp() from perf and subcmd

Both had copies originating from git.git, move those to tools/lib/string.c, getting both tools/lib/subcmd/ and tools/perf/ to use it.

Arnaldo Carvalho de Melo committed 9 years ago

Commit 96395cb1 parent 3caeafc7 files · +13 −20Browse files

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

Unified · Split

tools/include/linux/string.h+2−0
@@ -18,4 +18,6 @@ extern size_t strlcpy(char *dest, const char *src, size_t size); · 17 unmodified lines
1818
1919 char *str_error_r(int errnum, char *buf, size_t buflen);
2020
21+int prefixcmp(const char *str, const char *prefix);
22+
2123 #endif /* _LINUX_STRING_H_ */