diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
