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

Method xrealloc

src/gnudiff_xmalloc.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 with error checking. */
54
55void *
56GnuDiff::xrealloc(void *p, size_t n)
57{
58 p = realloc(p, n == 0 ? 1 : n);
59 if(p == nullptr)
60 xalloc_die();
61 return p;
62}
63
64/* Yield a new block of SIZE bytes, initialized to zero. */
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected