diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-03-06 18:50:29 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-03-06 18:50:29 +0000 |
commit | 1c25966b6f1a04ffa4d41c07b1502188b2b203ae (patch) | |
tree | ed3c85a88dc5389fb1ea18b8ca7ace22c7ca7b2a /include/stdlib.h | |
parent | 995e6500cd63ceea5971fd7ea8962cdfa37150f9 (diff) |
Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)
with the added feature that released memory is cleared. Much input from various
developers. ok deraadt@ tom@
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 9ae7b99103a..ccbccfc50a2 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.67 2016/09/20 21:10:22 fcambus Exp $ */ +/* $OpenBSD: stdlib.h,v 1.68 2017/03/06 18:50:28 otto Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -114,6 +114,7 @@ ldiv_t ldiv(long, long); void *malloc(size_t); #if __BSD_VISIBLE void *reallocarray(void *, size_t, size_t); +void *recallocarray(void *, size_t, size_t, size_t); #endif /* __BSD_VISIBLE */ void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); int rand(void); |