From 47e68b48a085efbc0a71b7814659dba159314475 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 15 Jun 2026 00:52:40 +0100 Subject: Added type lookup to file selector. Removed old CVS tags. Added SDL keysym to char lookup. --- src/util.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/util.h') 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 @@ -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 -- cgit v1.3