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

Function ngx_calloc

app/nginx-1.28.0/src/os/unix/ngx_alloc.c:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34void *
35ngx_calloc(size_t size, ngx_log_t *log)
36{
37 void *p;
38
39 p = ngx_alloc(size, log);
40
41 if (p) {
42 ngx_memzero(p, size);
43 }
44
45 return p;
46}
47
48
49#if (NGX_HAVE_POSIX_MEMALIGN)

Callers 2

ngx_open_file_add_eventFunction · 0.50
ngx_event_process_initFunction · 0.50

Calls 1

ngx_allocFunction · 0.70

Tested by

no test coverage detected