libpurple/util.h

changeset 39323
a1bec7e58cba
parent 39122
f18928dc403f
child 39437
9ab3a99af8d0
equal deleted inserted replaced
39322:0d0d1ab4eba6 39323:a1bec7e58cba
1105 * Unlike strcmp(), this function will not crash if one or both of the 1105 * Unlike strcmp(), this function will not crash if one or both of the
1106 * strings are %NULL. 1106 * strings are %NULL.
1107 * 1107 *
1108 * Returns: %TRUE if the strings are the same, else %FALSE. 1108 * Returns: %TRUE if the strings are the same, else %FALSE.
1109 */ 1109 */
1110 gboolean purple_strequal(const gchar *left, const gchar *right); 1110 static inline gboolean
1111 purple_strequal(const gchar *left, const gchar *right)
1112 {
1113 return (g_strcmp0(left, right) == 0);
1114 }
1111 1115
1112 /** 1116 /**
1113 * purple_normalize: 1117 * purple_normalize:
1114 * @account: The account the string belongs to, or NULL if you do 1118 * @account: The account the string belongs to, or NULL if you do
1115 * not know the account. If you use NULL, the string 1119 * not know the account. If you use NULL, the string

mercurial