Xref: utzoo comp.lang.c:8831 comp.unix.questions:6381 comp.os.vms:5529 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!mailrus!umix!rutgers!topaz.rutgers.edu!ron From: ron@topaz.rutgers.edu (Ron Natalie) Newsgroups: comp.lang.c,comp.unix.questions,comp.os.vms Subject: Re: how to avoid fflush after fclose? Message-ID: Date: 1 Apr 88 22:45:24 GMT References: <21774@teknowledge-vaxc.ARPA> Organization: The Office of Mismanagement and Bean Counting Lines: 7 fflush() is supposed to return EOF if the file is closed, even on UNIX. You get what you ask for. You're lucky you don't get screwed on UNIX, many stdio implementations dump core when you pass them a bogus file pointer. Why not recode your program such that it works properly and not attempt to use file pointers that have been closed? -Ron