how to avoid fflush after fclose?
Mike Khaw
mkhaw at teknowledge-vaxc.ARPA
Fri Apr 1 16:09:59 AEST 1988
Calling fflush after fclose appears not to hurt under Unix, but VMS returns
EOF. Is there a way to test if a FILE *fptr has been closed so that I don't
inadvertently call fflush after fclose? Ideally the solution is a function
in both the usual Unix C libraries and in the VMS C runtime library.
(If you're reading this in comp.os.vms, please reply by email, as I don't
usually pay any attention to VMS :))
Thanks,
Mike Khaw
--
internet: mkhaw at teknowledge-vaxc.arpa
usenet: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa
USnail: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303
More information about the Comp.unix.questions
mailing list