[MPlayer-cvslog] r35553 - trunk/gui/util/string.c

ib subversion at mplayerhq.hu
Sun Dec 2 01:38:14 CET 2012


Author: ib
Date: Sun Dec  2 01:38:14 2012
New Revision: 35553

Log:
Add doxygen comment.

Modified:
   trunk/gui/util/string.c

Modified: trunk/gui/util/string.c
==============================================================================
--- trunk/gui/util/string.c	Sun Dec  2 01:36:56 2012	(r35552)
+++ trunk/gui/util/string.c	Sun Dec  2 01:38:14 2012	(r35553)
@@ -153,6 +153,14 @@ char *gstrchr(const char *str, int c)
     return strchr(str, c);
 }
 
+/**
+ * @brief A strcmp() that can handle NULL pointers.
+ *
+ * @param a string to be compared
+ * @param b string which is compared
+ *
+ * @return return value of strcmp() or -1, if a or b are NULL
+ */
 int gstrcmp(const char *a, const char *b)
 {
     if (!a && !b)


More information about the MPlayer-cvslog mailing list