MCPcopy Create free account
hub / github.com/ioi/isolate / xmalloc

Function xmalloc

util.c:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include <unistd.h>
22
23void *
24xmalloc(size_t size)
25{
26 void *p = malloc(size);
27 if (!p)
28 die("Out of memory");
29 return p;
30}
31
32char *
33xstrdup(const char *str)

Callers 6

cf_per_boxFunction · 0.85
set_env_actionFunction · 0.85
apply_env_ruleFunction · 0.85
setup_environmentFunction · 0.85
add_dir_ruleFunction · 0.85
set_dir_action_extFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…