aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/util.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-09-27 21:50:11 +0000
committerArnaud Boutonné2010-09-27 21:50:11 +0000
commitd46f4a2fc0316e32a300752f5260e463118626e4 (patch)
tree1b84658a510826796545b49782728dca76338774 /engines/hugo/util.cpp
parent3db60d9e441cbf48701d0a0565ac87f6c69b1d15 (diff)
downloadscummvm-rg350-d46f4a2fc0316e32a300752f5260e463118626e4.tar.gz
scummvm-rg350-d46f4a2fc0316e32a300752f5260e463118626e4.tar.bz2
scummvm-rg350-d46f4a2fc0316e32a300752f5260e463118626e4.zip
HUGO: Move strlwr to Utils
svn-id: r52921
Diffstat (limited to 'engines/hugo/util.cpp')
-rw-r--r--engines/hugo/util.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/hugo/util.cpp b/engines/hugo/util.cpp
index 8c63bedc04..42ae9131d3 100644
--- a/engines/hugo/util.cpp
+++ b/engines/hugo/util.cpp
@@ -175,4 +175,17 @@ void Utils::gameOverMsg(void) {
warning("STUB: Gameover_msg(): %s", HugoEngine::get()._textUtil[kGameOver]);
}
+char *Utils::strlwr(char *buffer) {
+ char *result = buffer;
+
+ while (*buffer != '\0') {
+ if (isupper(*buffer))
+ *buffer = tolower(*buffer);
+ buffer++;
+ }
+
+ return result;
+}
+
+
} // End of namespace Hugo