### Method

# GLib PathBuf init_from_path

since: 2.76

#### Declaration [src]

    GPathBuf*
    g_path_buf_init_from_path (
      GPathBuf* buf,
      const char* path
    )

#### Description [src]

Initializes a `GPathBuf` instance with the given path.

Available since: 2.76

#### Parameters

`path`

  Type: `const char*`

  A file system path.

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

#### Return value

Type: `GPathBuf`

The initialized path builder.

The returned data is owned by the instance.