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

⟦fd7682d73⟧ TextFile

    Length: 202 (0xca)
    Types: TextFile
    Names: »strsave.c«

Derivation

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

TextFile

/* Save a copy of a string on the heap. */

#include "defs.h"

char *
strsave(s)
	register char *s;
{
	register char *p;
	
	if (s == NULL)
		return s;
	p= getmem(strlen(s) + 1);
	return strcpy(p, s);
}