History

tools lib: Adopt skip_spaces() from the kernel sources

Same implementation, will be used to replace ad-hoc equivalent code in tools/.

Arnaldo Carvalho de Melo committed 7 years ago

Commit 7bd330d1 parent bd9860b2 files · +17 −1Browse files

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

Unified · Split

tools/include/linux/string.h+3−1
@@ -29,4 +29,6 @@ static inline bool strstarts(const char *str, const char *prefix) · 28 unmodified lines
2929 return strncmp(str, prefix, strlen(prefix)) == 0;
3030 }
3131
32−#endif /* _LINUX_STRING_H_ */
32+extern char * __must_check skip_spaces(const char *);
33+
34+#endif /* _TOOLS_LINUX_STRING_H_ */