aboutsummaryrefslogtreecommitdiff
path: root/have
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-25 12:50:19 +0000
committerOmar Polo <op@omarpolo.com>2021-04-25 12:50:19 +0000
commit578f13e4b25879c7763944d4f555ed063a9d8e80 (patch)
tree181257cdd0468b05f3359137d46b8cbddbb9f41b /have
parentb5fdc32e758f57a11fcb78a7571649044b681b1b (diff)
add compat for reallocarray
Diffstat (limited to 'have')
-rw-r--r--have/reallocarray.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/have/reallocarray.c b/have/reallocarray.c
new file mode 100644
index 0000000..f99e685
--- /dev/null
+++ b/have/reallocarray.c
@@ -0,0 +1,7 @@
+#include <stdlib.h>
+
+int
+main(void)
+{
+ return !reallocarray(NULL, 2, 2);
+}