summaryrefslogtreecommitdiffstats
path: root/pw/reallocarray.h
diff options
context:
space:
mode:
Diffstat (limited to 'pw/reallocarray.h')
-rw-r--r--pw/reallocarray.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pw/reallocarray.h b/pw/reallocarray.h
new file mode 100644
index 0000000..eacd3cc
--- /dev/null
+++ b/pw/reallocarray.h
@@ -0,0 +1,5 @@
+#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+void *reallocarray(void *optr, size_t nmemb, size_t size);