libpurple/util.h

branch
next.minor
changeset 25859
b42be7bb9dac
parent 24072
80335879baaf
child 25885
5b5e2ca316b2
--- a/libpurple/util.h	Fri Jan 02 22:52:17 2009 +0000
+++ b/libpurple/util.h	Tue Jan 06 03:39:51 2009 +0000
@@ -775,6 +775,20 @@
 /*@{*/
 
 /**
+ * Tests two strings for equality.
+ *
+ * Unlike strcmp(), this function will not crash if one or both of the
+ * strings are @c NULL.
+ *
+ * @param left	A string
+ * @param right A string to compare with left
+ *
+ * @return @c TRUE if the strings are the same, else @c FALSE.
+ * @since 2.6.0
+ */
+gboolean purple_strequal(const gchar *left, const gchar *right);
+
+/**
  * Normalizes a string, so that it is suitable for comparison.
  *
  * The returned string will point to a static buffer, so if the

mercurial