Function

GLib-2.0GLibstrrstr

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

    The fact that this function returns gchar * rather than const gchar * is a historical artifact.

    Parameters

    • haystack: string

      a string to search in

    • needle: string

      the string to search for

    Returns string

    a pointer to the found occurrence, or NULL if not found