Reuse of a gtk_tree_model_get() Pointer



How can I reuse a pointer that was used in a call to gtk_tree_model_get()?

For example a call like gtk_tree_model_get(tmdl, &iter, INDEX, &rxi.idx,
QUANTITY, &rxi.qty, DESCRIPTION, &rxi.sdesc, -1);

If I wanted to add or change the description, depending upon whether
rxi.sdesc is NULL or not, should I free rxi.sdesc and allocate space for
the new string and then do a string copy?

Thanks,

dhk



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