Function

Purplestr_wipe

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.

Parameters

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