So if we were to go with your earlier code, it would look something like this:
char * temp = NULL;
char ** array = NULL;
...
...
array =...
Type: Posts; User: nonpuz
So if we were to go with your earlier code, it would look something like this:
char * temp = NULL;
char ** array = NULL;
...
...
array =...
You should never cast the return of malloc, all it will do is hide the fact that you haven't included stdlib.h in your program
If string is defined as char * string; that means sizeof(string) will...
array = malloc(sizeof(string));
This is surely not right. How is string declared?
Do you have any code to show us? The error means what it says, you probably tried to access memory that had already been free'd.