mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 16:36:14 +01:00
gstrfuncs: Document that g_ascii_strncasecmp() stops at first nul byte
The documentation wasn’t clear about whether it did that, or ignored nul bytes and continued to `n` bytes regardless. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
c29601818f
commit
535653eec1
@ -1874,7 +1874,9 @@ g_ascii_strcasecmp (const gchar *s1,
|
||||
* @n: number of characters to compare
|
||||
*
|
||||
* Compare @s1 and @s2, ignoring the case of ASCII characters and any
|
||||
* characters after the first @n in each string.
|
||||
* 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 strcasecmp() function, this only recognizes standard
|
||||
* ASCII letters and ignores the locale, treating all non-ASCII
|
||||
|
Loading…
Reference in New Issue
Block a user