I have this struct in C Example:
typedef struct
{
const char * array_pointers_of_strings [ 30 ];
// etc.
} message;
I need copy this array_pointers_of_strings to new array for sort strings. I need only copy adress.
while ( i < 30 )
{
new_array [i] = new_message->array_pointers_of_strings [i];
// I need only copy adress of strings
}
My question is: How to allocate new_array [i] by malloc() for only adress of strings?