Function

Purplestr_wipe

since: 3.0

Declaration [src]

void
purple_str_wipe (
  gchar* str
)

Description [src]

Fills a NUL-terminated string with zeros and frees it.

It should be used to free sensitive data, like passwords.

Available since: 3.0

Parameters

str

Type: gchar*

A NUL-terminated string to free, or a NULL-pointer.

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