[libvirt] [PATCH v2] Introduce APIs for splitting/joining strings

Eric Blake eblake at redhat.com
Fri Nov 30 19:27:57 UTC 2012


> This introduces a few new APIs for dealing with strings.
> One to split a char * into a char **, another to join a
> char ** into a char *, and finally one to free a char **
> 
> There is a simple test suite to validate the edge cases
> too. No more need to use the horrible strtok_r() API,
> or hand-written code for splitting strings.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---

ACK; you addressed my findings from v1.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list