History

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.

Arnaldo Carvalho de Melo committed 7 years ago

Commit 45bfd0a1 parent 32858482 files · +27 −0Browse files

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

Unified · Split

tools/include/linux/string.h+2−0
@@ -31,4 +31,6 @@ static inline bool strstarts(const char *str, const char *prefix) · 30 unmodified lines
31 31
32extern char * __must_check skip_spaces(const char *);32extern char * __must_check skip_spaces(const char *);
33 33
34extern char *strim(char *);
35
34#endif /* _TOOLS_LINUX_STRING_H_ */36#endif /* _TOOLS_LINUX_STRING_H_ */