I have a structure:
struct mystruct
{
int* pointer;
};
structure mystruct* struct_inst;
Now I want to change the value pointed to by struct_inst->pointer
. How can I do that?
EDIT
I didn't write it, but pointer
already points to an area of memory allocated with malloc
.