Function

GLibstrcasecmp

Declaration [src]

gint
g_strcasecmp (
  const gchar* s1,
  const gchar* s2
)

Description [src]

A case-insensitive string comparison, corresponding to the standard strcasecmp() function on platforms which support it.

Deprecated since:2.2

See g_strncasecmp() for a discussion of why this function is deprecated and how to replace it.

Parameters

s1 const gchar*
 

A string.

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

A string to compare with s1

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

Return value

Returns: gint
 

0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2.