36 arr2 = malloc(
sizeof(
void *) * len);
38 return (
err(
"malloc()", 0));
void ** arr_cut(void **arr, int len)
Create new null-terminated array containing first len elements of arr.
void * err(const char *str, void *retval)
Wrapper around perror() that always returns retval.