source: bootcd/isolinux/syslinux-6.03/com32/lib/chrreplace.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 203 bytes
Line 
1#include <ctype.h>
2
3/* Replace char 'old' by char 'new' in source */
4void chrreplace(char *source, char old, char new)
5{
6    while (*source) {
7        source++;
8        if (source[0] == old) source[0]=new;
9    }
10}
11
Note: See TracBrowser for help on using the repository browser.