memdisk: Force ld output format to 32-bits
[syslinux.git] / com32 / lib / chrreplace.c
blobcfbf5d4c911e08cad34a76f046401bb6db0798b5
1 #include <ctype.h>
3 /* Replace char 'old' by char 'new' in source */
4 void chrreplace(char *source, char old, char new)
6 while (*source) {
7 if (source[0] == old) source[0]=new;
8 source++;