Function

GLibstrrstr

Declaration [src]

gchar*
g_strrstr (
  const gchar* haystack,
  const gchar* needle
)

Description [src]

Searches the string haystack for the last occurrence of the string needle.

Parameters

haystack 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.
needle const gchar*
 

The nul-terminated string to search for.

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

Return value

Returns: gchar*
 

A pointer to the found occurrence, or NULL if not found.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.