From d46f4a2fc0316e32a300752f5260e463118626e4 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Mon, 27 Sep 2010 21:50:11 +0000 Subject: HUGO: Move strlwr to Utils svn-id: r52921 --- engines/hugo/util.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/hugo/util.cpp') 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 -- cgit v1.2.3