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

⟦a3408342a⟧ TextFile

    Length: 436 (0x1b4)
    Types: TextFile
    Names: »args.c«

Derivation

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

TextFile

#include "uutty.h"
/*
** Process the command-line arguments.
*/
args(ac,av)
char **av;
{	int  a;

	for (a=1; a<ac; a++) {
		D3("arg %d=\"%s\"",a,av[a]);
		switch (av[a][0]) {
		case '-':
		case '+':
			D6("opt %d=\"%s\"",a,av[a]);
			option(av[a]);
			continue;
		default:
			switch(files++) {
			case 0:		/* Name of serial port */
				device = av[a];
				break;
			default:
				E("Too many args; \"%s\" ignored.",av[a]);
			}
		}
	}
}