repo.or.cz
/
syslinux-debian.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Releasing debian version 3:6.03+dfsg-10.
[syslinux-debian.git]
/
com32
/
lib
/
chrreplace.c
blob
65786f94ff980fc67030ff3c879391ff793601f5
1
#include <ctype.h>
2
3
/* Replace char 'old' by char 'new' in source */
4
void
chrreplace
(
char
*
source
,
char
old
,
char
new
)
5
{
6
while
(*
source
) {
7
source
++;
8
if
(
source
[
0
] ==
old
)
source
[
0
]=
new
;
9
}
10
}
11