Re: [PATCH 3/8] virstring: Introduce virStringListAdd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.11.2016 11:22, Pino Toscano wrote:
> On Wednesday, 30 November 2016 10:59:30 CET Michal Privoznik wrote:
>> +char **
>> +virStringListAdd(const char **strings,
>> +                 const char *item)
>> +{
>> +    char **ret = NULL;
>> +    size_t i;
>> +
>> +    for (i = 0; strings && strings[i]; i++)
>> +        ;
> 
> virStringListLength, I guess.

Yeah, that could work too. For some reason I wanted to avoid another
function call, but I guess compiler will optimize that anyway.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux