aboutsummaryrefslogtreecommitdiff
path: root/tools/include/linux
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-06-26 11:50:16 -0300
committerArnaldo Carvalho de Melo <[email protected]>2019-06-26 11:50:16 -0300
commit45bfd0ac7bd2afa83600df9c1286a1642bb15c55 (patch)
treeadf9156b80e49def0ff60a44774114fb1273f8b4 /tools/include/linux
parent328584804edc950fb4608c9a38e396ac71ef22b6 (diff)
tools lib: Adopt strim() from the kernel
Since we're working on moving stuff out of tools/perf/util/ to tools/lib/, take the opportunity to adopt routines from the kernel that are equivalent, so that tools/ code look more like the kernel. Cc: Adrian Hunter <[email protected]> Cc: AndrĂ© Goddard Rosa <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/include/linux')
-rw-r--r--tools/include/linux/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h
index cee239350a6b..e436f8037c87 100644
--- a/tools/include/linux/string.h
+++ b/tools/include/linux/string.h
@@ -31,4 +31,6 @@ static inline bool strstarts(const char *str, const char *prefix)
extern char * __must_check skip_spaces(const char *);
+extern char *strim(char *);
+
#endif /* _TOOLS_LINUX_STRING_H_ */