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

⟦ab402ed44⟧ TextFile

    Length: 257 (0x101)
    Types: TextFile
    Names: »getmem.c«

Derivation

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

TextFile

/* Allocate memory, issue fatal error instead of returning NULL. */

#include "defs.h"

char *
getmem(n)
	int n;
{
	register char *p= malloc((unsigned) n);
	
	if (p == NULL) {
		fatal("out of memory");
		exit(2); /* If fatal doesn't exit */
	}
	return p;
}