Name

strreplace — Replace all occurrences of character in string.

Synopsis

char * strreplace (char * s,
 char old,
 char new);
 

Arguments

s

The string to operate on.

old

The character being replaced.

new

The character old is replaced with.

Description

Returns pointer to the nul byte at the end of s.