MCPcopy Index your code
hub / github.com/NetHack/NetHack / alloc

Function alloc

outdated/sys/amiga/xpm2iff.c:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267long *
268alloc(unsigned int n)
269{
270 long *ret = malloc(n);
271 if (!ret) {
272 error("Can't allocate memory");
273 exit(1);
274 }
275 return (ret);
276}
277
278FILE *xpmfh = 0;
279char initbuf[200];

Callers 8

gnome_player_selectionFunction · 0.50
gnome_display_fileFunction · 0.50
ghack_about_cbFunction · 0.50
Gem_add_menuFunction · 0.50
Gem_select_menuFunction · 0.50
wingem.cFile · 0.50
_copyfileFunction · 0.50
mac_select_menuFunction · 0.50

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected