Method

GLibPathBufto_path

since: 2.76

Declaration

char*
g_path_buf_to_path (
  GPathBuf* buf
)

Description

Retrieves the built path from the path buffer.

On Windows, the result contains backslashes as directory separators, even if forward slashes were used in input.

If the path buffer is empty, this function returns NULL.

Available since: 2.76

Return value

Type: char*

The path.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a file system path, using the OS encoding.