diff options
author | Benjamin Baier <programmer@netzbasis.de> | 2014-06-27 02:05:11 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2014-07-17 05:13:05 +0200 |
commit | faa005cb3209239bdbdf001e387cbcf9f088b12c (patch) | |
tree | def6e8cd0b2ba6869e2246c56e6d143e62658fb9 /include | |
parent | 36aca8c06ee6b41e917eb4f70622831852ad72f7 (diff) |
Add reallocarray() function from OpenBSD
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bsd/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index eb1f1c1..22a6dc8 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -67,6 +67,7 @@ int sradixsort(const unsigned char **base, int nmemb, const unsigned char *table, unsigned endbyte); void *reallocf(void *ptr, size_t size); +void *reallocarray(void *ptr, size_t nmemb, size_t size); long long strtonum(const char *nptr, long long minval, long long maxval, const char **errstr); |