F
Fred
I start with a program containing
FILE *msgout;
void msgset(FILE*, int);
....
msgset(msgout, 47);
In msgset I have (abbreviated)
FILE *err_stream = NULL;
void msgset(
FILE *msgout,
int iact
)
....
err_stream = stderr;
msgout = err_stream; // Assignment here depends on iact.
return;
In the debugger msgout appears to get set correctly prior to the
return.
Upon return msgout is NULL.
I'm hoping someone can educate me. Thanks,
Fred
FILE *msgout;
void msgset(FILE*, int);
....
msgset(msgout, 47);
In msgset I have (abbreviated)
FILE *err_stream = NULL;
void msgset(
FILE *msgout,
int iact
)
....
err_stream = stderr;
msgout = err_stream; // Assignment here depends on iact.
return;
In the debugger msgout appears to get set correctly prior to the
return.
Upon return msgout is NULL.
I'm hoping someone can educate me. Thanks,
Fred