Improve documentation for g_strcmp0()

Be more explicit about the handling of two NULL pointers.

https://bugzilla.gnome.org/show_bug.cgi?id=622480
This commit is contained in:
Milan Bouchet-Valat 2010-06-23 12:17:29 +02:00 committed by Christian Dywan
parent 6920e503e6
commit b116838da3

View File

@ -1429,6 +1429,7 @@ g_assertion_message_error (const char *domain,
*
* 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.
*