src/cx/list.h

changeset 1341
dc88d2ece7e4
parent 1316
c41538edfcef
equal deleted inserted replaced
1340:31c61b6dcaa5 1341:dc88d2ece7e4
79 void (*deallocate)(struct cx_list_s *list); 79 void (*deallocate)(struct cx_list_s *list);
80 80
81 /** 81 /**
82 * Member function for inserting a single element. 82 * Member function for inserting a single element.
83 * The data pointer may be @c NULL in which case the function shall only allocate memory. 83 * The data pointer may be @c NULL in which case the function shall only allocate memory.
84 * Returns a pointer to the data of the inserted element. 84 * Returns a pointer to the allocated memory or @c NULL if allocation fails.
85 */ 85 */
86 void *(*insert_element)( 86 void *(*insert_element)(
87 struct cx_list_s *list, 87 struct cx_list_s *list,
88 size_t index, 88 size_t index,
89 const void *data 89 const void *data

mercurial