|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 460 (0x1cc) Types: TextFile Names: »mem.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec1/shar/mem.c«
/* ** Get some memory or die trying. */ /* LINTLIBRARY */ #include "shar.h" RCS("$Header: mem.c,v 1.6 87/03/04 14:51:20 rs Exp $") align_t getmem(i, j) unsigned int i; unsigned int j; { extern char *calloc(); align_t p; if ((p = (align_t)calloc(i, j)) == NULL) { /* Print the unsigned's as int's so ridiculous values show up. */ fprintf(stderr, "Can't Calloc(%d,%d), %s.\n", i, j, Ermsg(errno)); exit(1); } return(p); }