blob: 037f717c745f1410ba2c38ef5a886c5fa4f79553 [file] [log] [blame]
Bernhard Reutner-Fischer7e8a53a2007-04-10 09:37:29 +00001/* vi set: sw=4 ts=4: */
2/* Convert string str to lowercase, return str.
3 *
4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
5 */
6#include "libbb.h"
7char* str_tolower(char *str)
8{
9 char *c;
10 for (c = str; *c; ++c)
11 *c = tolower(*c);
12 return str;
13}