|
|
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 m
Length: 862 (0x35e)
Types: TextFile
Names: »main.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z«
└─⟦2109abc41⟧
└─⟦this⟧ »./X.V10R4/xtrek/watch/main.c«
#include <X/Xlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <setjmp.h>
#include "../defs.h"
#include "../struct.h"
#include "../data.h"
struct itimerval udt;
int redrawall;
extern Window w, mapw, statwin;
main(argc, argv)
int argc;
char **argv;
{
int redraw();
int team;
int pno;
char buf[80];
register int i;
if (argc != 3) {
fprintf(stderr, "usage: %s monitor.name playerno\n", argv[0]);
exit(1);
}
pno = atoi(argv[2]);
newwin(argv[1]);
findslot();
redrawall = 1;
XClear(w);
enter(pno);
signal(SIGALRM, redraw);
udt.it_interval.tv_sec = 0;
udt.it_interval.tv_usec = 200000;
udt.it_value.tv_sec = 1;
udt.it_value.tv_usec = 0;
setitimer(ITIMER_REAL, &udt, 0);
while (gets(buf) > 0) {
pno = atoi(buf);
enter(pno);
}
}