In article <1992Sep3.210532.22036@tc.cornell.edu> elan@tasha.cheme.cornell.edu (Elan Feingold) writes:
>
>In a program I'm writing, after I fclose() a file, it seems to mess up the free space of the core, and I'm really not sure why. It seems that this sequence of events messes up the memory.
>
>1. Open file
>2. Allocate and deallocate memory
>3. Close file
Not sure if this is the case here, but doing "fclose" after an "open",
or a "close" after a "fopen" frequently crash the system with some
compilers. It's a good idea to get into a habit of always using one
pair and never the other.
Also closing a NULL file ptr (probably after a failed open) could