I know how one would find the length of a string array initialised this way
char* arr[] = {"some", "thing"};
Just do this,
size_t length = sizeof(arr)/sizeof(char*);
And you get length as 2, yes? But I had assumed that char** was the same thing as the char* array as above, and the whole sizeof thing does not work with it (I do at least know that it is a pointer to a pointer). I have looked all over the place trying to find a way to get the length of an array stored as a char** as opposed to char* [], but I feel like I don't understand enough on how to do this, even though it seems like it should be very straightforward.
In my program, I already have a char** array with values at indexes 0...n, when I try the getting the length using the way above, length is always 1.
Any help?