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

⟦0b5a32c48⟧ TextFile

    Length: 475 (0x1db)
    Types: TextFile
    Names: »create.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/cfs/create.c« 

TextFile

/*
 * create - creates a statfile for cfs
 */

#include "cfs.h"

create (statfile, verbose)
char   *statfile;
int     verbose;
{
    extern char *myname;
    FILE   *sfp;
    int     errflg = 0;
    char    name[MAXPATHLEN];
    FILE   *openwrite ();

    sfp = openwrite (statfile);

/* 
 *	add each name in stdin
 */
    while (scanf ("%s", name) != EOF)
	if (!addname (sfp, name))
	    if (verbose)
		printf ("a %s\n", name);
	    else
		errflg++;

    return (errflg);
}