summaryrefslogtreecommitdiff
path: root/src/shared/strv.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-17 01:08:56 +0100
committerTom Gundersen <teg@jklm.no>2014-12-17 01:09:16 +0100
commitdd9c7723fafc8b326188efa86efe00bcbe5abcfd (patch)
tree5009480faf68308a8fb769115158e1e11f0b2e1f /src/shared/strv.h
parent3542eac7f98e74ca106ac6df81b3b3cb158b35be (diff)
shared: strv - add strv_clear()
This frees the elements of the strv without freeing the strv itself.
Diffstat (limited to 'src/shared/strv.h')
-rw-r--r--src/shared/strv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h
index 2c0280b713..9e5b1bb8b0 100644
--- a/src/shared/strv.h
+++ b/src/shared/strv.h
@@ -34,6 +34,8 @@ void strv_free(char **l);
DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#define _cleanup_strv_free_ _cleanup_(strv_freep)
+void strv_clear(char **l);
+
char **strv_copy(char * const *l);
unsigned strv_length(char * const *l) _pure_;