aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index eae228e..8d1fa60 100644
--- a/util.c
+++ b/util.c
@@ -147,3 +147,7 @@ int digits(int num) {
// 2147483647 (2^31-1) is max value of int
return 10;
}
+
+int streq(const char* first, const char* second) {
+ return strcmp(first, second) == 0;
+}