25int err(
char *str,
int retval);
28int wrap_ix(
int i,
int max);
void ** arr_free(void **arr)
Free each element in a null-terminated array, and then the array itself.
int arr_len(void **arr)
Count number of elements in a null-terminated array.
int err(char *str, int retval)
Print str to stderr and return retval.
int fallback(int a, int b)
Return a if non-zero, otherwise return b.
int get_minix(int *arr, int len)
Get the index of the smallest element.