GLib.PathBuf.new_from_path
Description: Reference for GLib.PathBuf.new_from_path

### Function

# GLib PathBufnew_from_path

since: 2.76

#### Declaration [src]

    GPathBuf*
    g_path_buf_new_from_path (
      const char* path
    )

#### Description [src]

Allocates a new `GPathBuf` with the given `path`.

Available since: 2.76

This function is not directly available to language bindings.

#### Parameters

`path`

  Type: `const char*`

  The path used to initialize the buffer.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.

#### Return value

Type: `GPathBuf`

The newly allocated path buffer.

The caller of the function takes ownership of the data, and is responsible for freeing it.