Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
430
long *
431
alloc(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
441
void
442
panic(const char *msg)
Callers
nothing calls this directly
Calls
1
error
Function · 0.70
Tested by
no test coverage detected