comparison array.c @ 40:d741c948de89

Added a convenient macro PARRAY_FLUSH to free all objects
author David Demelier <markand@malikania.fr>
date Sun, 02 Oct 2011 10:59:09 +0200
parents b972758ddcd5
children f1e184940197
comparison
equal deleted inserted replaced
39:70a7bbe96b1d 40:d741c948de89
236 236
237 return data; 237 return data;
238 } 238 }
239 239
240 /* 240 /*
241 * Reset the array, if the trash argument is set it will free the object 241 * Erase every bytes and set the length to 0.
242 * too, otherwise the array is just truncated to 0 length.
243 */ 242 */
244 243
245 void 244 void
246 array_clear(struct array *arr) 245 array_clear(struct array *arr)
247 { 246 {