Sign in
android
/
platform
/
external
/
syslinux
/
refs/heads/oreo-mr1-release
/
.
/
com32
/
lib
/
chrreplace.c
blob: 65786f94ff980fc67030ff3c879391ff793601f5 [
file
] [
log
] [
blame
] [
edit
]
#include
<ctype.h>
/* Replace char 'old' by char 'new' in source */
void
chrreplace
(
char
*
source
,
char
old
,
char
new
)
{
while
(*
source
)
{
source
++;
if
(
source
[
0
]
==
old
)
source
[
0
]=
new
;
}
}