lib: Add "strv" string handling routines
authorVolker Lendecke <vl@samba.org>
Wed, 15 Oct 2014 13:26:51 +0000 (13:26 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 16 Dec 2014 17:56:03 +0000 (18:56 +0100)
commit5d7a183b9eb444f12bb501f5314afb01e5944966
tree7e547fdffb75931e8b56482965460cfb3bc158c4
parentb306f165648b54c8b302974e1938d694c571b23a
lib: Add "strv" string handling routines

This is a little set of routines designed after the glibc argz
routines. It is supposed to eventually replace our inefficient string_list
routines. A talloc blob is an array of strings separated by the \0
character. See argz(3) on a Linux system for the ideas where this came
from. Based on talloc strv is simpler because talloc knows about the
size of the blob, so we don't have to explicitly maintain it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/strv.c [new file with mode: 0644]
lib/util/strv.h [new file with mode: 0644]
lib/util/wscript_build