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 const gchar*
 

A nul-terminated string.

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

The nul-terminated suffix to look for.

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

Return value

Returns: gboolean
 

TRUE if str end with suffix, FALSE otherwise.