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

Function m_alloc

outdated/win/gem/wingem1.c:241–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240extern void panic(const char *, ...);
241void *
242m_alloc(size_t amt)
243{
244 void *ptr;
245
246 ptr = malloc(amt);
247 if (!ptr)
248 panic("Memory allocation failure; cannot get %lu bytes", amt);
249 return (ptr);
250}
251
252void
253mar_clear_messagewin(void)

Callers 4

mar_gem_initFunction · 0.85
mar_putstr_textFunction · 0.85
mar_create_windowFunction · 0.85
wingem1.cFile · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected