Commit graph

1 commit

Author SHA1 Message Date
Robert Clausecker
e72536a11f 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

(cherry picked from commit 42664610795bc0a728851ba6223fcf9b93801167)
2025-12-12 11:32:37 +01:00
Renamed from lib/libopenbsd/recallocarray.c (Browse further)