|
|
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 l
Length: 623 (0x26f)
Types: TextFile
Names: »local.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Galaxy/src1/local.c«
/*
* %W% (mrdch&amnnon) %E%
*/
# include <stdio.h>
struct chan
{
int ichan ;
char c ;
} ;
/*
* this file is invoked to create TWO reading processes.
* Each process reads from it's respective terminal,
* and writes it to the main process.
* The SOURCE is identified by the "ichan" no.
*/
main(ac, av)
int ac ;
char **av ;
{
struct chan c ;
if(ac != 2)
exit(1) ;
c.ichan = atoi(av[1]) ;
while(!feof(stdin))
{
c.c = getchar() ;
write(1, (char *)&c, sizeof(c)) ;
}
exit(0) ;
}