I have a
char** color;
I need to make a copy of the value of
*color;
Because I need to pass *color to a function but the value will be modified and I cannot have the original value to be modified.
How would you do that?
The whole code would look like this
Function1(char** color)
{
Function2(char * color);
return;
}
I have to mention that the pointers in function1 and 2 are used as a return value.