summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 8503c1b..8aecde3 100644
--- a/utils.h
+++ b/utils.h
@@ -1,6 +1,8 @@
#ifndef UTIL_H
#define UTIL_H
+#define ABS(x) ((x) >= 0 ? (x) : -(x))
+
char *str_delete_at(const char *str, const int pos);
size_t str_count_occ(const char *str, const char ch);