DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T p

⟦0bdeefe5a⟧ TextFile

    Length: 563 (0x233)
    Types: TextFile
    Names: »pager.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Galaxy/src1/pager.c« 

TextFile

/*
 * %W% (mrdch&amnnon) %E%
 */

# include <stdio.h>

main(ac, av)
int     ac ;
char    **av ;
{
        FILE    *tty ;

        if(ac != 3)
                getout("arg count") ;

        tty = fopen(av[1], "w") ;
        if(tty == NULL)
                getout("cannot open terminal") ;

        fprintf(tty, "\07\07%s would like to play galaxy with you.\n\r",av[2]) ;
        fprintf(tty, "\07\07If you wish to play exec /usr/games/okgalaxy\n\r") ;

        exit(0) ;
}

getout(s)
char    *s ;
{
        fprintf(stderr, "pager: %s.\n", s) ;
        exit(1) ;
}