summaryrefslogtreecommitdiff
path: root/algo1w2/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w2/main.h')
-rw-r--r--algo1w2/main.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/algo1w2/main.h b/algo1w2/main.h
new file mode 100644
index 0000000..4bc71fd
--- /dev/null
+++ b/algo1w2/main.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stdio.h>
+#include <stdbool.h>
+#include <stdlib.h>
+
+#define swap(a, b) { int t = (a); (a) = (b); (b) = (t); }
+
+#define min(a, b) (((a) < (b)) ? (a) : (b))
+#define max(a, b) (((a) > (b)) ? (a) : (b))
+
+void print_arr(int*, unsigned);
+