|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T p
Length: 563 (0x233)
Types: TextFile
Names: »pager.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Galaxy/src1/pager.c«
/*
* %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) ;
}