Free the array, without dealing with individual elements */
| 237 | |
| 238 | /* Free the array, without dealing with individual elements */ |
| 239 | static void array_free(array_t arr) { |
| 240 | if(arr != NULL) { |
| 241 | // like free(), shouldn't explode if NULL |
| 242 | array_free_fn(array_hdr(arr)); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | #define array_clear(arr) array_hdr(arr)->len = 0 |
| 247 |
no outgoing calls