summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2026-06-15 00:52:40 +0100
committerIan C <ianc@noddybox.co.uk>2026-06-15 00:52:40 +0100
commit47e68b48a085efbc0a71b7814659dba159314475 (patch)
tree0c7ad1ee36bdf3d35ce48b959821e677f702a4c4 /src/util.h
parentf540fb7da37d6c5b5544715e4ee6b83d440ea61d (diff)
Added type lookup to file selector. Removed old CVS tags. Added SDL keysym to char lookup.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index c82169e..2262332 100644
--- a/src/util.h
+++ b/src/util.h
@@ -25,7 +25,7 @@
*/
#ifndef ESPEC_UTIL_H
-#define ESPEC_UTIL_H "$Id$"
+#define ESPEC_UTIL_H
#include <stdlib.h>
@@ -74,6 +74,13 @@ const char *Dirname(const char *path);
void Debug(const char *format,...);
+/* See if the passed strings match, case insensitive, up to the passed length.
+ Returns TRUE if they match, otherwise FALSE. If nul is hit before the
+ length then just up to that is checked.
+*/
+int StartsWith(const char *a, const char *b, size_t len);
+
+
#endif