summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-06 11:36:51 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-06 11:36:51 +0800
commitfc9ae26aacede490d32f0b31d314f2c8286d158a (patch)
treee47a27c91f38c4ae2b54dfca691b96cc7b62168f /util.h
parent6e945b3f487d92d3cdf8706164da7040b9cb375a (diff)
Exit if malloc() fails
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..1b5ec50
--- /dev/null
+++ b/util.h
@@ -0,0 +1,6 @@
+#ifndef UTIL_H
+#define UTIL_H
+
+void mallocfail();
+#endif
+