program to create output with a table of contents

caf caf at cdi.UUCP
Fri Aug 26 04:36:29 AEST 1983


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 <fcntl.h>

	fclose(stdout);
	fcntl(SaveOut, F_DUPFD, 1);
/*	dup2(SaveOut, 1);	*/
-- 
Chuck Forsberg WA7KGX CDI Portland OR cdi!caf (503)-646-1599



More information about the Comp.sources.unix mailing list