Re: g_strsplit() return



The "newly-allocated" means that I have to call g_strfreev(single_string_vector, TRUE) in the for loop or can I just do it once outside the cycle?

You must free inside the loop, since a vector is allocated in every iteration.

Regards,
Ian L. Rodrigues


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