HomeFreeBSD

lib/libc: add recallocarray()

Description

lib/libc: add recallocarray()

This function from OpenBSD is a hybrid of reallocarray() and calloc().
It reallocates an array, clearing any newly allocated items.
reallocarray() ultimately originates from OpenBSD.

The source is taken from lib/libopenbsd, which now no longer has the
function unless when bootstrapping (needed for mandoc).

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D52863

Details

Provenance
fuzAuthored on Thu, Oct 2, 2:33 PM
Reviewer
kib
Differential Revision
D52863: lib/libc: add recallocarray()
Parents
rG969c1191957a: lib/libc: add FBSD-1.9 to Versions.def
Branches
Unknown
Tags
Unknown