Dereference a pointer inside a structure pointer

Posted by klez on Stack Overflow See other posts from Stack Overflow or by klez
Published on 2010-04-05T23:29:21Z Indexed on 2010/04/05 23:33 UTC
Read the original article Hit count: 282

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about ansi-c

Related posts about c