repo.or.cz
/
syslinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
memdisk: Force ld output format to 32-bits
[syslinux.git]
/
com32
/
lib
/
chrreplace.c
blob
cfbf5d4c911e08cad34a76f046401bb6db0798b5
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
if
(
source
[
0
] ==
old
)
source
[
0
]=
new
;
8
source
++;
9
}
10
}
11