summaryrefslogtreecommitdiff
path: root/string.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-07-31 22:11:34 +0000
committerDarkvater <darkvater@openttd.org>2006-07-31 22:11:34 +0000
commitcef563141a3f1bfe8d8f2bf5211598df57e4ec0f (patch)
tree324b4fc0d30866882b6415c8accf29bf57ca9be6 /string.h
parent17dc89880501bcd0fc341db033596cfd066d4eaf (diff)
downloadopenttd-cef563141a3f1bfe8d8f2bf5211598df57e4ec0f.tar.xz
(svn r5684) - Codechange: create an strtolower() function that uses tolower() on a whole string and apply it in the places this was used.
Diffstat (limited to 'string.h')
-rw-r--r--string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/string.h b/string.h
index cbe3881db..39be2309b 100644
--- a/string.h
+++ b/string.h
@@ -29,6 +29,9 @@ char* CDECL str_fmt(const char* str, ...);
* replaces them with a question mark '?' */
void str_validate(char *str);
+/** Convert the given string to lowercase */
+void strtolower(char *str);
+
/** Only allow valid ascii-function codes. Filter special codes like BELL and
* so on [we need a special filter here later]
* @param key character to be checked