diff options
| author | Brent Cook <bcook@openbsd.org> | 2017-03-16 19:23:36 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2017-03-16 19:23:36 -0500 |
| commit | d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669 (patch) | |
| tree | ecff511a1a175c88222a9c83872920d512671717 /include/compat/stdlib.h | |
| parent | 8f69fe98dba08e22dd1341cbaad91745c8bf7ad7 (diff) | |
| parent | c61c9821e8417243a5a0cf691415f5e5626f2b3b (diff) | |
| download | portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.gz portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.bz2 portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.zip | |
Land #297, Add recallocarray
Diffstat (limited to 'include/compat/stdlib.h')
| -rw-r--r-- | include/compat/stdlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h index 781be77..11f82ba 100644 --- a/include/compat/stdlib.h +++ b/include/compat/stdlib.h | |||
| @@ -29,6 +29,10 @@ uint32_t arc4random_uniform(uint32_t upper_bound); | |||
| 29 | void *reallocarray(void *, size_t, size_t); | 29 | void *reallocarray(void *, size_t, size_t); |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #ifndef HAVE_RECALLOCARRAY | ||
| 33 | void *recallocarray(void *, size_t, size_t, size_t); | ||
| 34 | #endif | ||
| 35 | |||
| 32 | #ifndef HAVE_STRTONUM | 36 | #ifndef HAVE_STRTONUM |
| 33 | long long strtonum(const char *nptr, long long minval, | 37 | long long strtonum(const char *nptr, long long minval, |
| 34 | long long maxval, const char **errstr); | 38 | long long maxval, const char **errstr); |
