Function
GLibstrrstr_len
Declaration [src]
gchar*
g_strrstr_len(
constgchar*haystack,
gssizehaystack_len,
constgchar*needle
)
Description [src]
Searches the string haystack for the last occurrence
of the string needle, limiting the length of the search
to haystack_len.
The fact that this function returns gchar * rather than const gchar * is
a historical artifact.
Parameters
haystack-
Type:
const gchar*A string to search in.
The data is owned by the caller of the function.The value is a NUL terminated UTF-8 string. haystack_len-
Type:
gssizeThe maximum length of
haystackin bytes. A length of-1can be used to mean “search the entire string”, likeg_strrstr(). needle-
Type:
const gchar*The string to search for.
The data is owned by the caller of the function.The value is a NUL terminated UTF-8 string.
Return value
Type: gchar*
A pointer to the found occurrence, or
NULL if not found.
The data is owned by the called function.
The return value can be
NULL. The value is a NUL terminated UTF-8 string.