summaryrefslogtreecommitdiff
path: root/src/shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared.h')
-rw-r--r--src/shared.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared.h b/src/shared.h
new file mode 100644
index 0000000..430af4b
--- /dev/null
+++ b/src/shared.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <stdio.h>
+#include <stdbool.h>
+
+__attribute__ ((__format__(printf, 1, 2)))
+void error(const char* format, ...);
+
+FILE* get_file(const char* path, const char* type);
+
+long int get_number(const char* text);
+
+bool streql(const char* a, const char* b);
+
+bool prefix(const char* pre, const char* str);