Re: number list elements problem



Hi,

thank you very much Sven, now it works:)

2 questions again:

> list = g_slist_remove_link (list, g_slist_nth (list, position));

> BTW, you are using the list in a very inefficient way here. In order
> for the node to be removed the list is traversed twice.

Yes I know it... How can I remove a node in the list by a 'gint' index without
my prev line-command?

g_slist_remove_link () / g_slist_free_1 () = g_slist_delete_link () ?

Thanks in adv
France

__________________________________________________________________
Tiscali ADSL SENZA CANONE:
Attivazione GRATIS, contributo adesione GRATIS, modem GRATIS,
50 ore di navigazione GRATIS.  ABBONARTI TI COSTA SOLO UN CLICK!
http://point.tiscali.it/adsl/index.shtml






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