idlastro / Miscellaneous (Non-Astronomy) Procedures: REPCHR

[Source code]

NAME
REPCHR
PURPOSE
Replace one character if a string with another
CALLING SEQUENCE
res = repchr(s, old, [new])
INPUTS
s   - Original string
old - Character to be replaced
new - Replacing character
REVISION HISTORY
Rewritten from scratch, Christer Sandin, 2015