MCPcopy Create free account
hub / github.com/capstone-engine/capstone / calloc

Function calloc

contrib/windows_kernel/libc.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61__drv_maxIRQL(DISPATCH_LEVEL)
62__bcount_opt(size * n)
63void*
64__cdecl calloc(size_t n, size_t size)
65{
66 size_t total = n * size;
67 void *p = malloc(total);
68
69 if (!p) return NULL;
70
71 return memset(p, 0, total);
72}
73
74EXTERN_C
75__drv_when(return!=0, __drv_allocatesMem(inblock))

Callers 3

splitFunction · 0.85
readfileFunction · 0.85
setup_issueFunction · 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…