MCPcopy Create free account
hub / github.com/F-Stack/f-stack / safe_calloc

Function safe_calloc

tools/ipfw/ipfw2.c:539–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538
539void *
540safe_calloc(size_t number, size_t size)
541{
542 void *ret = calloc(number, size);
543
544 if (ret == NULL)
545 err(EX_OSERR, "calloc");
546 return ret;
547}
548
549void *
550safe_realloc(void *ptr, size_t size)

Callers 7

get_extra_parmsFunction · 0.70
ipfw_config_pipeFunction · 0.70
dummynet_listFunction · 0.70
set_addr_dynamicFunction · 0.70
altq_fetchFunction · 0.70
main.cFile · 0.70
strtoportFunction · 0.70

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected