Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!decwrl!hplabs!sdcrdcf!psivax!csun!sdsu!dlong From: dlong@sdsu.UUCP (Dean Long) Newsgroups: comp.os.minix Subject: bugfix for last head.c diff Message-ID: <2554@sdsu.UUCP> Date: Sat, 7-Mar-87 22:05:50 EST Article-I.D.: sdsu.2554 Posted: Sat Mar 7 22:05:50 1987 Date-Received: Mon, 9-Mar-87 19:00:15 EST Reply-To: dlong@sdsu.UUCP (Dean Long) Distribution: world Organization: San Diego State University, Math/Sciences Dept. Lines: 13 The last diff I posted for head.c doesn't work for multiple files, like "head *.c" because prints() doesn't use stdio. Fflush isn't called before prints(), so things get written out of order. Just move the fflush() call into the main loop, and things should work: ------------ 47a48 > fflush(stdout); 49d49 < fflush(stdout); -- Dean Long University of California, San Diego sdcsvax!tiamat!dlong