src/cx/array_list.h

changeset 612
820ee59121b4
parent 610
de5d3ee6435f
child 617
cec11387c1be
equal deleted inserted replaced
611:77efa5163ae5 612:820ee59121b4
89 }; 89 };
90 90
91 /** 91 /**
92 * Return codes for cx_array_copy(). 92 * Return codes for cx_array_copy().
93 */ 93 */
94 enum cx_array_coppy_result { 94 enum cx_array_copy_result {
95 CX_ARRAY_COPY_SUCCESS, 95 CX_ARRAY_COPY_SUCCESS,
96 CX_ARRAY_COPY_REALLOC_NOT_SUPPORTED, 96 CX_ARRAY_COPY_REALLOC_NOT_SUPPORTED,
97 CX_ARRAY_COPY_REALLOC_FAILED, 97 CX_ARRAY_COPY_REALLOC_FAILED,
98 }; 98 };
99 99
119 * @param elem_count the number of elements to copy 119 * @param elem_count the number of elements to copy
120 * @param reallocator the array re-allocator to use, or \c NULL 120 * @param reallocator the array re-allocator to use, or \c NULL
121 * if re-allocation shall not happen 121 * if re-allocation shall not happen
122 * @return zero on success, non-zero error code on failure 122 * @return zero on success, non-zero error code on failure
123 */ 123 */
124 enum cx_array_coppy_result cx_array_copy( 124 enum cx_array_copy_result cx_array_copy(
125 void **target, 125 void **target,
126 size_t *size, 126 size_t *size,
127 size_t *capacity, 127 size_t *capacity,
128 size_t index, 128 size_t index,
129 void const *src, 129 void const *src,

mercurial