aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorkrolyxon <krolyxon@tutanota.com>2023-08-31 08:39:20 +0530
committerkrolyxon <krolyxon@tutanota.com>2023-08-31 08:39:20 +0530
commitf94f903987b167b0bc641aeabe20c708a0cc0a6f (patch)
tree50f88d391d3628d8d3367c63df85d595db8f77ba /src/utils.h
Initial Commit
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
new file mode 100644
index 0000000..a667b73
--- /dev/null
+++ b/src/utils.h
@@ -0,0 +1,19 @@
+#include <stdio.h>
+
+#define MAX_LEN 128
+#define BAR "────────────────────────────────\n"
+
+// COLORS
+#define COLOR_RED "\x1b[31m"
+#define COLOR_GREEN "\x1b[32m"
+#define COLOR_YELLOW "\x1b[33m"
+#define COLOR_BLUE "\x1b[34m"
+#define COLOR_MAGENTA "\x1b[35m"
+#define COLOR_CYAN "\x1b[36m"
+#define COLOR_RESET "\x1b[0m"
+#define COLOR_BOLD "\e[1m"
+#define COLOR_OFF "\e[m"
+
+void printarr(int a[], int n);
+void print_ascii(char *filename);
+void swap(int a[], int i, int j);