Function

Purplestrcasestr

Declaration [src]

const char*
purple_strcasestr (
  const char* haystack,
  const char* needle
)

Description [src]

This is like strstr, except that it ignores ASCII case in searching for the substring.

Parameters

haystack const char*
 

The string to search in.

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

The substring to find.

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

Return value

Returns: const char*
 

The location of the substring if found, or NULL if not.

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