[glib] Correct to docs for g_strcmp0
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Correct to docs for g_strcmp0
- Date: Sun, 30 Sep 2012 17:40:24 +0000 (UTC)
commit 7c045e34238b9c9280bc77529f952ae5b8b581f2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 30 13:37:39 2012 -0400
Correct to docs for g_strcmp0
Don't promise to return -1 or 1 - we fall back to strcmp which
does not guarantee this.
https://bugzilla.gnome.org/show_bug.cgi?id=685037
glib/gtestutils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index f0e8f6c..0b6cdd1 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -1973,11 +1973,11 @@ g_assertion_message_error (const char *domain,
* @str1: (allow-none): a C string or %NULL
* @str2: (allow-none): another C string or %NULL
*
- * Compares @str1 and @str2 like strcmp(). Handles %NULL
+ * Compares @str1 and @str2 like strcmp(). Handles %NULL
* gracefully by sorting it before non-%NULL strings.
* Comparing two %NULL pointers returns 0.
*
- * Returns: -1, 0 or 1, if @str1 is <, == or > than @str2.
+ * Returns: an integer less than, equal to, or greater than zero, if @str1 is <, == or > than @str2.
*
* Since: 2.16
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]