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

⟦a66606cb6⟧ TextFile

    Length: 378 (0x17a)
    Types: TextFile
    Names: »poparg.c«

Derivation

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

TextFile

/*
 * poparg - pop next argument off argv list
 *	    returns pointer to arg; else NULL when no more
 *
 * Rex Sanders, USGS Pacific Marine Geology, 2/87
 */

#include <stdio.h>

char   *
poparg (argc, argv)
int    *argc;
char ***argv;

{
    char   *newarg;

    if (*argc > 0) {
	newarg = **argv;
	(*argc)--;
	(*argv)++;
    }
    else
	newarg = NULL;

    return (newarg);
}