I forgot how to do this. I have a two-dimensional array[i][j] that I initialize a character at a time by looping through j, then increment i, repeat, so i should be an index to the j string. I then want to pass a pointer to this array to another function that can reference the strings by index i, like strcmp("mystrin g",*string[0]); or similar.
I've tried every combination of pointer combination I can think of but it either doesn't work or generates errors. I'm not declaring variables/pointers correctly or I've just blinded myself to a solution.
A little help please.
I've tried every combination of pointer combination I can think of but it either doesn't work or generates errors. I'm not declaring variables/pointers correctly or I've just blinded myself to a solution.
A little help please.
Comment