Functions | |
EAPI Evas_List * | evas_list_last (Evas_List *list) |
Get the last list node in the list. | |
EAPI Evas_List * | evas_list_next (Evas_List *list) |
Get the next list node after the specified list node. | |
EAPI 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.
list | The list to get the last list node from |
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.
list | The list node to get the next list node from |
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.
list | The list node to get the previous list node from |
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); }