summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authornoodle <shawtynoodle@gmail.com>2023-07-10 15:40:08 +0300
committernoodle <shawtynoodle@gmail.com>2023-07-10 15:40:08 +0300
commitb7ac144cd2d242791938b51569effb7a1378a332 (patch)
tree0db39dc6d72a96697707c662c32f4dcdb99372b7 /utils.h
parent35eacac40f265aad47bf25d10f3ecd3670b79b2f (diff)
Add files
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils.h b/utils.h
new file mode 100644
index 0000000..b214d5d
--- /dev/null
+++ b/utils.h
@@ -0,0 +1,11 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+// min: get minimum of 'a' and 'b'
+int min_int(int a, int b);
+size_t min_size_t(size_t a, size_t b);
+// max: get maximum of 'a' and 'b'
+int max_int(int a, int b);
+size_t max_size_t(size_t a, size_t b);
+
+#endif /* UTILS_H */