Function
GLibascii_strncasecmp
since: 2.0
Description
Compare s1 and s2, ignoring the case of ASCII characters and any
characters after the first n in each string. If either string is
less than n bytes long, comparison will stop at the first nul byte encountered.
Unlike the BSD strncasecmp() function, this only recognizes standard
ASCII letters and ignores the locale, treating all non-ASCII
characters as if they are not letters.
The same warning as in g_ascii_strcasecmp() applies: Use this
function only on strings known to be in encodings where bytes
corresponding to ASCII letters always represent themselves.
Available since: 2.0
Parameters
s1-
Type:
const gchar*String to compare with
s2The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. s2-
Type:
const gchar*String to compare with
s1The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. n-
Type:
gsizeNumber of characters to compare.