Go to the source code of this file.
Functions | |
void | zarray_vmap (zarray_t *za, void(*f)()) |
int | zstrcmp (const void *a_pp, const void *b_pp) |
void zarray_vmap | ( | zarray_t * | za, |
void(*)() | f | ||
) |
Calls the supplied function for every element in the array in index order. HOWEVER values are passed to the function, not pointers to values. In the case where the zarray stores object pointers, zarray_vmap allows you to pass in the object's destroy function (or free) directly. Can only be used with zarray's which contain pointer data. The map function should have the following format:
void map_function(element_type *element)
int zstrcmp | ( | const void * | a_pp, |
const void * | b_pp | ||
) |
A comparison function for comparing strings which can be used by zarray_sort() to sort arrays with char* elements.