diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-28 11:28:13 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-30 15:57:58 -0400 |
commit | d412e76b28894271a29ce53eac47de562fc86a59 (patch) | |
tree | 1dc5aed4e6c40a6018b4ee62dcb45dc3eaf52fa6 /src/util/util.h | |
parent | 766e61cb433aa96e832226e30d5ec9a84304f707 (diff) | |
download | sssd2-d412e76b28894271a29ce53eac47de562fc86a59.tar.gz sssd2-d412e76b28894271a29ce53eac47de562fc86a59.tar.xz sssd2-d412e76b28894271a29ce53eac47de562fc86a59.zip |
Add dup_string_list() utility function
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h index da92ae68..6bcc9984 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. |