aboutsummaryrefslogtreecommitdiff
path: root/jindroush/chkbas/strlwr.cpp
blob: 10c3f84387c3d4a13b0c635237c8219ea8408a25 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <ctype.h>

// 20070524 bkw: Linux and POSIX lack the DOS/Windows strlwr() function,
// so here's an implementation.

void strlwr(char *s) {
	while(*s) {
		*s = tolower(*s);
		s++;
	}
}