Function

Purplestr_strip_char

since: 2.0

Declaration [src]

void
purple_str_strip_char (
  char* str,
  char thechar
)

Description [src]

Strips all instances of the given character from the given string. The string is modified in place. This is useful for stripping new line characters, for example.

Example usage: purple_str_strip_char(my_dumb_string, ‘\n’);

Available since: 2.0

Parameters

str

Type: char*

The string to strip characters from.

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

Type: char

The character to strip from the given string.