I'm in need to get the size of a dynamically allocated 2-Dimensional array, however the array is full of 0's (on a specific row), iterating through the rows results in the entire loop breaking due to the NULL pointer being '0'.
Assigning a different terminating character to a "row" doesn't seem to be able to work and causes a segfault.
Every column in the row:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The code for getting the size ( side note: I'm unable to make use of standard libraries nor mind my syntax, it's due to my studies norm.):
int ft_2d_len(char **arr)
{
int index;
index = 0;
while (arr[index] != NULL)
index++;
return (index);
}