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

⟦59dd3e071⟧ TextFile

    Length: 352 (0x160)
    Types: TextFile
    Names: »checkargv.c«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/stat/src/checkargv.c« 

TextFile

/* LINTLIBRARY */
#include "unixstat.h"
FUN(checkargv,check basename of program,5.0,1985)

/* returns true if the first arg ends the second */

checkargv (target, argv0) /* true if argv0 ends in target */
char	*target, *argv0;
	{
	int	offset = strlen (argv0) - strlen (target);
	if (offset < 0) return (0);
	return (!strcmp (target, argv0+offset));
	}