Function

Purplestr_strip_char

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’);

Parameters

str 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 char
 

The character to strip from the given string.