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

⟦49c7e4a93⟧ TextFile

    Length: 268 (0x10c)
    Types: TextFile
    Names: »cimatch.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec1/news/misc/search/lib/cimatch.c« 

TextFile

/* See if str contains match. */

#include "defs.h"

bool
cimatch(match, str, mlen)
	char *match;
	char *str;
	int mlen;
{
	int slen= strlen(str);
	
	while (slen >= mlen) {
		if (cistrncmp(match, str, mlen) == 0)
			return TRUE;
		++str;
		--slen;
	}
	return FALSE;
}