shithub: riscv

ref: 3858b49942afb68d29e1ad02e6210bc5aba84c6e
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);
}