Sign in
plan9port
/
plan9
/
34d629c8572518afe0a1d5698d7b184938e35a8f
/
.
/
src
/
libString
/
s_tolower.c
blob: 895f14c1e1e4652abf19cfafa3e2260ccced9ba3 [
file
] [
log
] [
blame
]
#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
);
}