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

Function alloca

util/panic.c:62–66  ·  view source on GitHub ↗

* In case bison-generated foo_yacc.c tries to use alloca(); if we don't * have it then just use malloc() instead. This may not work on some * systems, but they should either use yacc or get a real alloca routine. */

Source from the content-addressed store, hash-verified

60 * systems, but they should either use yacc or get a real alloca routine.
61 */
62long *
63alloca(unsigned int cnt)
64{
65 return cnt ? alloc(cnt) : (long *) 0;
66}
67#endif
68
69/*panic.c*/

Callers

nothing calls this directly

Calls 1

allocFunction · 0.50

Tested by

no test coverage detected