Function

Purpleutil_chrreplace

Declaration [src]

void
purple_util_chrreplace (
  char* string,
  char delimiter,
  char replacement
)

Description [src]

Given a string, this replaces all instances of one character with another. This happens inline (the original string IS modified).

Parameters

string char*
 

The string from which to replace stuff.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
delimiter char
 

The character you want replaced.

replacement char
 

The character you want inserted in place of the delimiting character.