Sign in
plan9port
/
plan9
/
32c6e78c6c4c13b63d8dc30aa395cfcc6e686c0a
/
.
/
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
);
}