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 - download
Index: ┃ T g

⟦33c9aeea8⟧ TextFile

    Length: 632 (0x278)
    Types: TextFile
    Names: »getcat.c«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/rman/client/getcat.c« 

TextFile

#ifndef lint
static char RCSid[] = "$Header: getcat.c,v 1.3 85/07/16 11:08:26 broome Exp $";
#endif

/*
 * $Log:    getcat.c,v $
 * Revision 1.3  85/07/16  11:08:26  broome
 * *** empty log message ***
 * 
 * Revision 1.2  85/07/04  20:17:58  broome
 * Just added the RCS keywords ...
 */

#include <stdio.h>
#define  eq(a,b)   (strcmp (a, b) == 0)

/*
 *  Read the text from the socket and print directly to stdout.
 */

getcat ()
{
    extern FILE *sock_rp;
    char   line[BUFSIZ];

    while (fgets (line, BUFSIZ, sock_rp)) {
        if (eq (line, ".\r\n"))
            return;
        fputs (line, stdout);
    }
    return;
}