MCPcopy Create free account
hub / github.com/eggert/tz / growalloc

Function growalloc

zic.c:660–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658 memory_exhausted(_("integer overflow"));
659}
660
661static void *
662growalloc(void *ptr, ptrdiff_t itemsize, ptrdiff_t nitems,
663 ptrdiff_t *nitems_alloc)
664{
665 return (nitems < *nitems_alloc
666 ? ptr
667 : xrealloc(ptr, grow_nitems_alloc(nitems_alloc, itemsize)));
668}
669
670/*

Callers 6

make_linksFunction · 0.85
inruleFunction · 0.85
inzsubFunction · 0.85
inlinkFunction · 0.85
addttFunction · 0.85
leapaddFunction · 0.85

Calls 2

xreallocFunction · 0.85
grow_nitems_allocFunction · 0.85

Tested by

no test coverage detected