CompuServe Thread

#UNIX varients

3 messages in this thread
#8967From: SyndesisAug 31, 1988 5:50 PM
I seem to remember some version of MS-DOS C implementations that crashed if you tried to fclose() something that wasn't opened… Are you sure that the Amiga doesn't do this, too? What's so hard about checking the argument before you close it? Or writing routines that aren't dependent on implementation choices? I don't think this is a compiler-dependent thing.
#9042From: Steve AhlstromSep 1, 1988 12:13 AM
Aztec doesn't cause a crash if you fclose() an unopened file. I do it all the time (yes, I know I should check the value, but I get lazy).
#9088From: Doug WingerSep 1, 1988 7:35 AM