aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
new file mode 100644
index 0000000..19dc193
--- /dev/null
+++ b/src/utils.c
@@ -0,0 +1,6 @@
+#include "utils.h"
+#include "string.h"
+
+bool string_has_prefix(const char *pre, const char *str) {
+ return strncmp(pre, str, strlen(pre)) == 0;
+}