rc.xml: split out rstrip() to string-helpers.c

This commit is contained in:
Johan Malm 2021-02-16 21:03:38 +00:00
parent bc04f50d14
commit a97428020e
3 changed files with 21 additions and 13 deletions

View file

@ -8,4 +8,11 @@
*/
char *string_strip(char *s);
/**
* string_truncate_at_pattern - remove pattern and everything after it
* @buf: pointer to buffer
* @pattern: string to remove
*/
void string_truncate_at_pattern(char *buf, const char *pattern);
#endif /* __LABWC_STRING_HELPERS_H */