Function

Purpleutil_chrreplace

since: 2.0

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).

Available since: 2.0

Parameters

string

Type: 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

Type: char

The character you want replaced.

replacement

Type: char

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