src/cx/linked_list.h

changeset 1318
12fa1d37fe48
parent 1241
ebcc08023c33
equal deleted inserted replaced
1317:eeb2fc3850e2 1318:12fa1d37fe48
49 * If @p elem_size is #CX_STORE_POINTERS, the created list stores pointers instead of 49 * If @p elem_size is #CX_STORE_POINTERS, the created list stores pointers instead of
50 * copies of the added elements and the compare function will be automatically set 50 * copies of the added elements and the compare function will be automatically set
51 * to cx_cmp_ptr(), if none is given. 51 * to cx_cmp_ptr(), if none is given.
52 * 52 *
53 * @param allocator the allocator for allocating the list nodes 53 * @param allocator the allocator for allocating the list nodes
54 * (if @c NULL, a default stdlib allocator will be used) 54 * (if @c NULL, the cxDefaultAllocator will be used)
55 * @param comparator the comparator for the elements 55 * @param comparator the comparator for the elements
56 * (if @c NULL, and the list is not storing pointers, sort and find 56 * (if @c NULL, and the list is not storing pointers, sort and find
57 * functions will not work) 57 * functions will not work)
58 * @param elem_size the size of each element in bytes 58 * @param elem_size the size of each element in bytes
59 * @return the created list 59 * @return the created list

mercurial