From dae0af263a9490c57962c2d43ede2083d618e637 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 28 Jul 2010 11:28:13 -0400 Subject: Add dup_string_list() utility function --- src/util/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util/util.h') diff --git a/src/util/util.h b/src/util/util.h index da92ae68c..6bcc9984d 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -332,6 +332,12 @@ int split_on_separator(TALLOC_CTX *mem_ctx, const char *str, char **parse_args(const char *str); + +/* Copy a NULL-terminated string list + * Returns NULL on out of memory error or invalid input + */ +char **dup_string_list(TALLOC_CTX *memctx, const char **str_list); + /* Take two string lists (terminated on a NULL char*) * and return up to three arrays of strings based on * shared ownership. -- cgit