After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685037 - g_strcmp0: Returns shall include values less and greater than zero
g_strcmp0: Returns shall include values less and greater than zero
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.16.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-09-28 11:13 UTC by Miguel Araújo
Modified: 2012-09-30 17:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Miguel Araújo 2012-09-28 11:13:35 UTC
g_strcmp0 Reference Manual states the following:


Returns :

-1, 0 or 1, if str1 is <, == or > than str2.


----

But g_strcmp0 can fall back to strcmp() which returns an integer less, equal to, or greater than zero.


Documentation shall be altered to specify all the Return cases.