MCPcopy Create free account
hub / github.com/NetHack/NetHack / alloc

Function alloc

outdated/sys/amiga/txt2iff.c:430–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430long *
431alloc(unsigned int n)
432{
433 long *ret = malloc(n);
434 if (!ret) {
435 error("Can't allocate memory");
436 exit(1);
437 }
438 return (ret);
439}
440
441void
442panic(const char *msg)

Callers

nothing calls this directly

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected