diff options
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index cd48aee30..294620df7 100644 --- a/core/dive.h +++ b/core/dive.h @@ -38,6 +38,11 @@ static inline bool same_string_caseinsensitive(const char *a, const char *b) return !strcasecmp(a ?: "", b ?: ""); } +static inline bool empty_string(const char *s) +{ + return !s || !*s; +} + static inline bool includes_string_caseinsensitive(const char *haystack, const char *needle) { if (!needle) |