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

⟦3a47f666e⟧ TextFile

    Length: 267 (0x10b)
    Types: TextFile
    Names: »lastfield.c«

Derivation

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

TextFile

/*
** Find the last field of a string.
*/
char *
lastfield(p,c)
	char *p;	/* Null-terminated string to scan */
	int   c;	/* Separator char, usually '/' */
{	char *r;

	r = p;
	while (*p)			/* Find the last field of the name */
		if (*p++ == c)
			r = p;
	return r;
}