File:  [MW Coherent from dump] / coherent / d / bin / tsort / main.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

#include <stdio.h>
#include "tsort.h"


main(argc, argv)
register int	argc;
register char	*argv[];
{
	register FILE *fp = stdin;

	if (argc > 2)
		usage();
	if (argc == 2) {
		fp = fopen(*++argv, "r");
		if (fp == NULL)
			die("Can't open %s", *argv);
	}
	getcon(fp);
	order();
	return (0);
}

usage()
{
	fprintf(stderr, "usage: tsort [file]\n");
	exit(1);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.