Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site cdi.UUCP Path: utzoo!linus!decvax!tektronix!reed!cdi!caf From: caf@cdi.UUCP (caf) Newsgroups: net.sources Subject: Re: program to create output with a table of contents Message-ID: <247@cdi.UUCP> Date: Thu, 25-Aug-83 14:36:29 EDT Article-I.D.: cdi.247 Posted: Thu Aug 25 14:36:29 1983 Date-Received: Wed, 31-Aug-83 20:31:11 EDT References: <645@druca.UUCP> Organization: Computer Development Inc, Beaverton OR Lines: 11 Here is the "fix" for SYSTEM III unix. You might be able to use dup(2) if running V7 but the rules for determining which fd gets duped to are different. #include fclose(stdout); fcntl(SaveOut, F_DUPFD, 1); /* dup2(SaveOut, 1); */ -- Chuck Forsberg WA7KGX CDI Portland OR cdi!caf (503)-646-1599