Function

GLibstr_has_suffix

Declaration

gboolean
g_str_has_suffix (
  const gchar* str,
  const gchar* suffix
)

Description

Looks whether the string str ends with suffix.

Available since:2.2

Parameters

str

Type: const gchar*

A nul-terminated string.

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

Type: const gchar*

The nul-terminated suffix to look for.

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

Return value

Type: gboolean

TRUE if str end with suffix, FALSE otherwise.