Annotation of 42BSD/games/trek/out.c, revision 1.1

1.1     ! root        1: #ifndef lint
        !             2: static char sccsid[] = "@(#)out.c      4.1     (Berkeley)      3/23/83";
        !             3: #endif not lint
        !             4: 
        !             5: # include      "trek.h"
        !             6: 
        !             7: /*
        !             8: **  Announce Device Out
        !             9: */
        !            10: 
        !            11: out(dev)
        !            12: int    dev;
        !            13: {
        !            14:        register struct device  *d;
        !            15: 
        !            16:        d = &Device[dev];
        !            17:        printf("%s reports %s ", d->person, d->name);
        !            18:        if (d->name[length(d->name) - 1] == 's')
        !            19:                printf("are");
        !            20:        else
        !            21:                printf("is");
        !            22:        printf(" damaged\n");
        !            23: }

unix.superglobalmegacorp.com

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