I do not understand why the following code:
char** receive_message(char** ret)
{
char* temp = "text";
strcpy(&ret, temp);
return ret;
}
gives this error:
warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(&ret, temp);
I'm trying to copy a message that is generated inside a function to a char* array that is allocated outside the function.