Introduce APIs for splitting/joining strings
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: NDaniel P. Berrange <berrange@redhat.com> (cherry picked from commit 76c1fd33) Conflicts: tests/Makefile.am - commit eca72d47 not backported
Showing
src/util/virstring.c
0 → 100644
src/util/virstring.h
0 → 100644
tests/virstringtest.c
0 → 100644
想要评论请 注册 或 登录