Function

Gntcolors_get_color

Declaration [src]

int
gnt_colors_get_color (
  char* key
)

Description [src]

Parse a string color.

Available since:2.4.0

Parameters

key char*
 

The string value.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: int
 

A color. For an unknown color name, returns -EINVAL.