Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!bingvaxu!marge.math.binghamton.edu!sullivan From: sullivan@marge.math.binghamton.edu (fred sullivan) Newsgroups: comp.unix.wizards Subject: fflush and input Message-ID: <750@bingvaxu.cc.binghamton.edu> Date: Tue, 8-Dec-87 17:25:35 EST Article-I.D.: bingvaxu.750 Posted: Tue Dec 8 17:25:35 1987 Date-Received: Sun, 13-Dec-87 14:28:04 EST Sender: news@bingvaxu.cc.binghamton.edu Reply-To: sullivan@marge.math.binghamton.edu.cc.binghamton.edu (fred sullivan) Organization: SUNY Binghamton, NY Lines: 12 The Ultrix 2.0 manual says that if fflush is called for a file which is not open for output, then EOF is returned. This is true. The SUN manual says the same thing. It is wrong. In fact, the SUN fflush will flush an input file. What do other flavors of Unix say and do? What is the correct way to flush an input file? (It's actually the last question that I need an answer to.) Fred Sullivan Department of Mathematical Sciences State University of New York at Binghamton Binghamton, New York 13903 Email: sullivan@marge.math.binghamton.edu