### Virtual Method

# Gio Drive get_name

#### Declaration

    char*
    get_name (
      GDrive* drive
    )

#### Description

Gets the name of `drive`.

#### Return value

Type: `char*`

A string containing `drive`‘s name. The returned string should be freed when no longer needed.

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