src/ucx/list.h

changeset 277
f819fe5e20f5
parent 259
2f5dea574a75
child 291
deb0035635eb
equal deleted inserted replaced
274:0923c036b913 277:f819fe5e20f5
171 * Destroys the contents of the specified list by calling the specified 171 * Destroys the contents of the specified list by calling the specified
172 * destructor on each of them. 172 * destructor on each of them.
173 * 173 *
174 * Note, that the contents are not usable afterwards and the list should be 174 * Note, that the contents are not usable afterwards and the list should be
175 * destroyed with ucx_list_free(). 175 * destroyed with ucx_list_free().
176 *
177 * If no destructor is specified (<code>NULL</code>), stdlib's free() is used.
176 * 178 *
177 * @param list the list for which the contents shall be freed 179 * @param list the list for which the contents shall be freed
178 * @param destr the destructor function (e.g. stdlib free()) 180 * @param destr optional destructor function
179 * @see ucx_list_free() 181 * @see ucx_list_free()
180 */ 182 */
181 void ucx_list_free_content(UcxList* list, ucx_destructor destr); 183 void ucx_list_free_content(UcxList* list, ucx_destructor destr);
182 184
183 185

mercurial