[libvirt] split string into tokens via libvirt

Vasiliy Tolstov v.tolstov at selfip.ru
Mon Nov 16 19:38:17 UTC 2015


I'm solve, firstly by hands I'm parse from first char to end of word with
backslash, after that simply split string via libvirt virStringSplit
16 нояб. 2015 г. 13:06 пользователь "Vasiliy Tolstov" <v.tolstov at selfip.ru>
написал:

> Hi. I'm need to parse string like "= test\ aaa 3 10 0 0 1336557216 7c2b27
> 3 22"
> I can use virStringSplitCount, but second word contains space and
> splitting not works right.
>
> Does this need i need to parse string by hand via strtok ?
>
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20151116/536cc854/attachment-0001.htm>


More information about the libvir-list mailing list