Hi. If I have a little sub-routine such as:
void MyFunc(void)
{
struct locks *gottem;
memset(&gottem, 0, sizeof(gottem)); /* more clean code */
...
...
}
As I enter this sub-routine under debug, with the cursor at the memset call, debug shows for my 'gottem' structure + gottem, {...}, struct *, 4015c4 where "+" is the little plus sign in a box, {...} is the value of the variable, and 4015c4 is what I assume is the address of the structure.
Now I hit F11, the memset is executed and the debug window shows + gottem, NULL, struct *, and 00000000. If I look at memory location 4015c4 it has not changed.
What is debug trying to tell me?
Thanks.