diff options
author | 2017-03-06 18:50:28 +0000 | |
---|---|---|
committer | 2017-03-06 18:50:28 +0000 | |
commit | 14537fffc1d7454c3fdc84b8728f2489aa59ffc7 (patch) | |
tree | 25eceaa5c971f5ccd459d9159eca59e6590f6e40 | |
parent | recallocarray bump (diff) | |
download | wireguard-openbsd-14537fffc1d7454c3fdc84b8728f2489aa59ffc7.tar.xz wireguard-openbsd-14537fffc1d7454c3fdc84b8728f2489aa59ffc7.zip |
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@
-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); |