summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-06-03 02:39:38 +0200
committerLouis Burda <quent.burda@gmail.com>2023-06-03 02:39:38 +0200
commit808d5506ce033fee5b1e8b002e9d47a92355a582 (patch)
tree6b4b224dca204602bd1362f912eebfd23a975f6b /include
parent9ba593c97dddd8155ea8baa45884a7c763cd3c55 (diff)
downloadlibstrvec-c-808d5506ce033fee5b1e8b002e9d47a92355a582.tar.gz
libstrvec-c-808d5506ce033fee5b1e8b002e9d47a92355a582.zip
Add strvec_join and strvec_remove_str
Diffstat (limited to 'include')
-rw-r--r--include/strvec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/strvec.h b/include/strvec.h
index b28980e..49658eb 100644
--- a/include/strvec.h
+++ b/include/strvec.h
@@ -58,6 +58,11 @@ const char **strvec_popn(struct strvec *strvec, size_t n);
static inline const char *strvec_pop(struct strvec *strvec);
void strvec_replace(struct strvec *strvec, size_t index, const char *str);
void strvec_remove(struct strvec *strvec, size_t index, size_t n);
+int strvec_remove_str(struct strvec *strvec, const char *str,
+ const struct allocator *allocator);
+
+char *strvec_join(struct strvec *strvec, const char *sep,
+ const struct allocator *allocator, int *rc);
const char **strvec_iter_fwd(const struct strvec *strvec, const char **p);
const char **strvec_iter_bwd(const struct strvec *strvec, const char **p);