code declaration for replace character in string function

[b][red]This message was edited by denniscpp at 2002-9-18 22:16:37[/red][/b][hr]
[code]/* replace all the character that was matched with c by c1 in
string s. */
void replaceSC(int c, int c1, char *s)
while (*s != 0) {
if (*s == c)
*s = c1;

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!