Method

IpuzPuzzlesave_to_data

Declaration [src]

gchar*
ipuz_puzzle_save_to_data (
  IpuzPuzzle* self,
  gsize* size
)

Description [src]

Returns a newly allocated string dontaining self as an ipuz file.

Parameters

size

Type: gsize*

Return location for the length of the returned buffer.

The argument will be set by the function.
The argument can be set to NULL by the method.

Return value

Type: gchar*

A newly allocated string holding an ipuz file.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.