diff options
Diffstat (limited to 'src/string.h')
-rw-r--r-- | src/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/string.h b/src/string.h index c3bc45280..6b9924d63 100644 --- a/src/string.h +++ b/src/string.h @@ -47,6 +47,9 @@ typedef enum CharSetFilter { void strtolower(char *str); +static inline bool StrEmpty(const char* s) { return s[0] == '\0'; } + + /** Get the length of a string, within a limited buffer */ static inline int ttd_strnlen(const char *str, int maxlen) { |