Function

GLibstr_has_prefix

Declaration

gboolean
g_str_has_prefix (
  const gchar* str,
  const gchar* prefix
)

Description

Looks whether the string str begins with prefix.

Available since:2.2

Parameters

str 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.
prefix const gchar*
 

The nul-terminated prefix to look for.

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

Return value

Returns: gboolean
 

TRUE if str begins with prefix, FALSE otherwise.