aboutsummaryrefslogtreecommitdiff
path: root/src/libString/s_tolower.c
blob: 737fff1f2e9a9201a47f27cf98329f83cc4cb6ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <u.h>
#include <libc.h>
#include <ctype.h>
#include "libString.h"


/* convert String to lower case */
void
s_tolower(String *sp)
{
	char *cp;

	for(cp=sp->ptr; *cp; cp++)
		*cp = tolower(*cp);
}