Functions | |
Evas_List * | evas_list_append (Evas_List *list, const void *data) |
Appends the given data to the given linked list. | |
Evas_List * | evas_list_prepend (Evas_List *list, const void *data) |
Prepends the given data to the given linked list. | |
Evas_List * | evas_list_append_relative (Evas_List *list, const void *data, const void *relative) |
Inserts the given data into the given linked list after the specified data. | |
Evas_List * | evas_list_prepend_relative (Evas_List *list, const void *data, const void *relative) |
Prepend a data pointer to a linked list before the memeber specified. |
|
Appends the given data to the given linked list. The following example code demonstrates how to ensure that the given data has been successfully appended.
Evas_List *list = NULL; extern void *my_data; list = evas_list_append(list, my_data); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); }
|
|
Inserts the given data into the given linked list after the specified data.
If The following example code demonstrates how to ensure that the given data has been successfully inserted.
Evas_List *list = NULL; extern void *my_data; extern void *relative_member; list = evas_list_append(list, relative_member); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); } list = evas_list_append_relative(list, my_data, relative_member); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); }
|
|
Prepends the given data to the given linked list. The following example code demonstrates how to ensure that the given data has been successfully prepended. Example: Evas_List *list = NULL; extern void *my_data; list = evas_list_prepend(list, my_data); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); }
|
|
Prepend a data pointer to a linked list before the memeber specified.
If The following code example demonstrates how to ensure that the given data has been successfully inserted.
Evas_List *list = NULL; extern void *my_data; extern void *relative_member; list = evas_list_append(list, relative_member); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); } list = evas_list_prepend_relative(list, my_data, relative_member); if (evas_list_alloc_error()) { fprintf(stderr, "ERROR: Memory is low. List allocation failed.\n"); exit(-1); }
|