From 0366952bae967a1b69c510f8e633c0567ccab4a9 Mon Sep 17 00:00:00 2001 From: axtloss Date: Mon, 15 Jul 2024 03:24:14 +0200 Subject: add function join_str --- src/extlib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/extlib.h') diff --git a/src/extlib.h b/src/extlib.h index 80c79d0..b12ddbf 100644 --- a/src/extlib.h +++ b/src/extlib.h @@ -62,5 +62,7 @@ char *strupr(char *s); char *trim (char *s, int *rem_front, int *rem_back); /// Match string s for old and replace it with string replace - char *replace_str (char *s, char *old, char *replace); +char *replace_str (char *s, char *old, char *replace); +/// Join an array of strings into one string +char *join_str (char **s, size_t len, char delim); -- cgit v1.2.3