shithub: riscv

ref: 08a9a6952dfa9ace5b4ae6fa1614c97d4a945ece
dir: /sys/src/libString/s_tolower.c/

View raw version
#include <u.h>
#include <libc.h>
#include "String.h"


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

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