MCPcopy Create free account
hub / github.com/KDE/kdiff3 / zalloc

Method zalloc

src/gnudiff_xmalloc.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64/* Yield a new block of SIZE bytes, initialized to zero. */
65
66void *
67GnuDiff::zalloc(size_t size)
68{
69 void *p = xmalloc(size);
70 memset(p, 0, size);
71 return p;
72}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected