changeset 35459:1edb306bc754

Add doxygen comment.
author ib
date Sun, 02 Dec 2012 00:38:14 +0000
parents 2a6113c08e20
children 7d1d7f783975
files gui/util/string.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/string.c	Sun Dec 02 00:36:56 2012 +0000
+++ b/gui/util/string.c	Sun Dec 02 00:38:14 2012 +0000
@@ -153,6 +153,14 @@
     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)