aboutsummaryrefslogtreecommitdiff
path: root/src/libString/s_tolower.c
blob: 895f14c1e1e4652abf19cfafa3e2260ccced9ba3 (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((uchar)*cp);
}