Virtual Method

IpuzCluesget_clue_string_by_id

Declaration [src]

gchar*
get_clue_string_by_id (
  IpuzClues* clues,
  IpuzClueId* clue_id
)

Description [src]

Returns a string containing the solution of the puzzle for a given clue. This string will have ‘?’ characters embedded within it if there are cells without solutions set yet.

Parameters

clue_id

Type: IpuzClueId

An IpuzClueId to get the clue string for.

The data is owned by the caller of the function.

Return value

Type: gchar*

The solution for the puzzle for clue_id. Returns NULL if clue_id points to an invalid clue.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.