summaryrefslogtreecommitdiff
path: root/libbb/str_tolower.c
blob: f402e8e6f6a75ef219a7e0530b3cbfbfe92915ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* vi set: sw=4 ts=4: */
/* Convert string str to lowercase, return str.
 *
 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
 */
#include "libbb.h"

char* FAST_FUNC str_tolower(char *str)
{
	char *c;
	for (c = str; *c; ++c)
		*c = tolower(*c);
	return str;
}