how to save poiner in C

Posted by JosiP on Stack Overflow See other posts from Stack Overflow or by JosiP
Published on 2010-05-07T10:09:34Z Indexed on 2010/05/07 10:18 UTC
Read the original article Hit count: 285

Filed under:
|

Hi

In my app, for debugging i want to save pointer, before i do other operations on it eg:

void foo(...)
{
    /* suppose ptr1 points to one of my strcuts */
    ptr1 = NULL;
    /* before that ptr1=NULL i want to save value of that pointer - how to do it ? */

}

thx for any help

© Stack Overflow or respective owner

Related posts about c

    Related posts about pointers