From 6e18964d3a365567954fe10ddcfad74babdc427c Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 4 Mar 2014 09:20:51 -0500 Subject: Introduce strv_consume which takes ownership This mirrors set_consume and makes the common use a bit nicer. --- src/shared/strv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/strv.h') diff --git a/src/shared/strv.h b/src/shared/strv.h index 715bc5419c..13a4bb6cf1 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -40,6 +40,7 @@ int strv_extend_strv(char ***a, char **b); int strv_extend_strv_concat(char ***a, char **b, const char *suffix); int strv_extend(char ***l, const char *value); int strv_push(char ***l, char *value); +int strv_consume(char ***l, char *value); char **strv_remove(char **l, const char *s); char **strv_uniq(char **l); -- cgit v1.2.3-54-g00ecf