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 l

⟦86f1f5d92⟧ TextFile

    Length: 623 (0x26f)
    Types: TextFile
    Names: »local.c«

Derivation

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

TextFile

/*
 * %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) ;
}