Name

strreplace — Replace all occurrences of character in string.

Synopsis

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

Arguments

char * s

The string to operate on.

char old

The character being replaced.

char new

The character old is replaced with.

Description

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