GLib.unichar_xdigit_value
Description: Reference for GLib.unichar_xdigit_value

### Function

# GLibunichar_xdigit_value

since: 2.0

#### Declaration

    gint
    g_unichar_xdigit_value (
      gunichar c
    )

#### Description

Determines the numeric value of a character as a hexadecimal digit.

Available since: 2.0

#### Parameters

`c`

  Type: `gunichar`

  A Unicode character.

#### Return value

Type: `gint`

If `c` is a hex digit (according to g_unichar_isxdigit()), its numeric value. Otherwise, -1.