Daniel P. Berrange
1bcb4c727f
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: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 76c1fd33c8093d6a7173a85486e1e6f51a832135)
Signed-off-by: Eric Blake <eblake@redhat.com>
Conflicts:
tests/Makefile.am - several intermediate tests not backported
2013-09-18 21:10:20 -06:00
..
2011-07-07 17:49:21 -06:00
2011-12-03 15:55:46 -07:00
2012-03-27 09:54:49 -06:00
2012-03-09 14:36:31 +01:00
2012-05-04 09:09:07 +02:00
2011-09-05 07:03:04 -06:00
2012-03-15 12:24:56 +08:00
2012-05-08 16:57:37 -06:00
2012-02-01 17:02:45 -07:00
2012-01-11 13:10:21 -07:00
2012-01-11 13:10:21 -07:00
2011-12-08 08:39:26 -05:00
2012-01-11 06:42:37 -05:00
2012-01-11 06:42:37 -05:00
2013-09-12 09:27:09 +02:00
2012-05-08 16:57:37 -06:00
2012-05-08 16:57:37 -06:00
2012-03-07 18:24:43 -07:00
2012-05-08 16:57:37 -06:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-03-07 18:24:43 -07:00
2012-05-08 16:57:37 -06:00
2011-11-30 10:12:30 +00:00
2012-05-08 16:57:37 -06:00
2012-04-02 09:33:54 -06:00
2012-03-07 18:24:43 -07:00
2012-03-30 11:47:14 +01:00
2012-04-27 17:25:35 -04:00
2012-05-08 16:57:37 -06:00
2012-04-23 10:59:51 +02:00
2012-05-08 16:57:37 -06:00
2012-03-27 15:52:25 +01:00
2012-03-26 14:45:22 -06:00
2011-12-01 13:49:20 -07:00
2011-07-29 17:17:21 +02:00
2012-03-26 14:45:22 -06:00
2011-06-30 18:04:02 +01:00
2012-04-10 11:13:44 +01:00
2012-03-29 21:23:59 -06:00
2013-09-18 21:10:20 -06:00
2012-04-05 07:04:43 -04:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2011-06-24 08:01:10 -06:00
2012-05-08 16:57:37 -06:00
2011-07-22 15:18:32 +01:00
2012-03-26 14:45:22 -06:00
2013-09-12 09:27:09 +02:00
2012-02-27 16:06:02 -07:00
2012-05-08 16:57:36 -06:00
2012-05-08 16:57:36 -06:00
2012-03-26 14:45:22 -06:00
2012-04-17 22:56:18 +08:00
2011-11-18 15:00:18 -07:00
2011-12-22 13:01:09 -07:00
2012-02-08 11:55:56 +01:00
2012-03-30 11:47:24 +01:00
2011-09-16 15:51:31 -06:00
2011-12-01 13:49:20 -07:00
2012-03-26 14:45:22 -06:00
2012-03-30 11:47:14 +01:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2011-07-11 09:21:37 -06:00
2012-05-08 12:38:11 -06:00
2012-04-04 14:33:27 +01:00
2012-03-27 15:52:25 +01:00
2012-03-27 15:52:25 +01:00
2012-04-05 22:07:41 -06:00
2011-11-03 12:01:48 +00:00
2011-07-01 16:46:20 -06:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-01-26 14:11:13 +00:00
2012-04-04 14:33:27 +01:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-03-30 11:47:24 +01:00
2013-09-18 21:06:24 -06:00
2011-12-01 14:12:59 -07:00
2011-12-01 14:12:59 -07:00
2013-09-18 21:06:24 -06:00
2012-05-01 14:58:14 -06:00
2013-09-18 21:10:20 -06:00
2011-09-28 15:43:39 +08:00
2012-03-26 14:45:22 -06:00
2012-04-05 22:07:41 -06:00
2012-02-24 11:53:23 +01:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-03-26 14:45:22 -06:00
2012-02-24 11:53:23 +01:00