i was wondering how do i create a ragget 2d string(char*)array in c . (my example code looks like this)
int j = 1;
char **array = null;
... read string...
*array = (char *) realloc(sizeof(char *) * j);
j++;
(sirAvertisment[j] = (char **) realloc((*sirAvertisment)[j],sizeof(char *) * strlen(somearray[i]))
for example i want it
- A L F A B E T
- A P P L E
- K I D
- S E M A P H O R E S
but with pointers so when i read 1 row of a matrix i get the word complete