I have a struct like this
typedef struct Sentences
{
char* str;
} sentence;
And 2D array of these structs
sentence **para;
para = (sentence**) malloc(x*sizeof(sentence*));
for (i, 0 to 10)
{
para[i] = (sentence*)malloc(y*sizeof(sentence));
for (j, 0 to 5)
{
para[i][j] = (char*)malloc(z*sizeof(char));
}
}
How can I free everything?