mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
string-util: introduce strprepend() helper
This commit is contained in:
@@ -106,6 +106,8 @@ static inline const char* empty_or_dash_to_null(const char *p) {
|
||||
|
||||
char* first_word(const char *s, const char *word) _pure_;
|
||||
|
||||
char* strprepend(char **x, const char *s);
|
||||
|
||||
char* strnappend(const char *s, const char *suffix, size_t length);
|
||||
|
||||
#define strjoin(a, ...) strextend_with_separator_internal(NULL, NULL, a, __VA_ARGS__, NULL)
|
||||
|
||||
Reference in New Issue
Block a user