Annotation of coherent/d/bin/tsort/main.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: #include "tsort.h"
        !             3: 
        !             4: 
        !             5: main(argc, argv)
        !             6: register int   argc;
        !             7: register char  *argv[];
        !             8: {
        !             9:        register FILE *fp = stdin;
        !            10: 
        !            11:        if (argc > 2)
        !            12:                usage();
        !            13:        if (argc == 2) {
        !            14:                fp = fopen(*++argv, "r");
        !            15:                if (fp == NULL)
        !            16:                        die("Can't open %s", *argv);
        !            17:        }
        !            18:        getcon(fp);
        !            19:        order();
        !            20:        return (0);
        !            21: }
        !            22: 
        !            23: usage()
        !            24: {
        !            25:        fprintf(stderr, "usage: tsort [file]\n");
        !            26:        exit(1);
        !            27: }

unix.superglobalmegacorp.com

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