Function

Purpleutil_write_data_to_file_absolute

Declaration [src]

gboolean
purple_util_write_data_to_file_absolute (
  const char* filename_full,
  const char* data,
  gssize size
)

Description [src]

Write data to a file using the absolute path.

This exists for Glib backwards compatibility reasons.

See purple_util_write_data_to_file()

Deprecated since:3.0.0

Use g_file_set_contents() instead.

Parameters

filename_full const char*
 

Filename to write to.

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

A string of data to write.

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

The size of the data to save. If data is null-terminated you can pass in -1.

Return value

Returns: gboolean
 

TRUE if the file was written successfully. FALSE otherwise.