Functions | |
Evas_List * | evas_list_last (Evas_List *list) |
Get the last list node in the list. | |
Evas_List * | evas_list_next (Evas_List *list) |
Get the next list node after the specified list node. | |
Evas_List * | evas_list_prev (Evas_List *list) |
Get the previous list node before the specified list node. |
|
Get the last list node in the list.
NB: This is a order-1 operation (it takes the same short time regardless of the length of the list). Example: extern Evas_List *list; Evas_List *last, *l; last = evas_list_last(list); printf("The list in reverse:\n"); for (l = last; l; l = l->prev) { printf("%p\n", l->data); } |
|
Get the next list node after the specified list node.
Example: extern Evas_List *list; Evas_List *l; printf("The list:\n"); for (l = list; l; l = evas_list_next(l)) { printf("%p\n", l->data); } |
|
Get the previous list node before the specified list node.
Example: extern Evas_List *list; Evas_List *last, *l; last = evas_list_last(list); printf("The list in reverse:\n"); for (l = last; l; l = evas_list_prev(l)) { printf("%p\n", l->data); } |