[comp.sys.ibm.pc.programmer] external variable disappears

david@wubios.wustl.edu (David J. Camp) (02/20/90)

I am using Microsoft C 5.1.  I have a variable defined before the first
function declaration like this:

int crc_flag;

As soon as I enter the first function, CodeView reports that the value
of the function has changed, from 1 to 0.  The variable is not declared
inside the function, and is not an argument in the function call.

This seems wrong, based on my understanding of C.  What should be
happening?  -David-

Bitnet:   david@wubios.wustl                ^      Mr. David J. Camp
Internet: david%wubios@wugate.wustl.edu   < * >    Box 8067, Biostatistics
uucp:     uunet!wugate!wubios!david         v      660 South Euclid
Washington University (314) 36-23635               Saint Louis, MO 63110