comparison gui/util/string.c @ 35459:1edb306bc754

Add doxygen comment.
author ib
date Sun, 02 Dec 2012 00:38:14 +0000
parents 311b47301ea7
children 49f29de2ff10
comparison
equal deleted inserted replaced
35458:2a6113c08e20 35459:1edb306bc754
151 return NULL; 151 return NULL;
152 152
153 return strchr(str, c); 153 return strchr(str, c);
154 } 154 }
155 155
156 /**
157 * @brief A strcmp() that can handle NULL pointers.
158 *
159 * @param a string to be compared
160 * @param b string which is compared
161 *
162 * @return return value of strcmp() or -1, if a or b are NULL
163 */
156 int gstrcmp(const char *a, const char *b) 164 int gstrcmp(const char *a, const char *b)
157 { 165 {
158 if (!a && !b) 166 if (!a && !b)
159 return 0; 167 return 0;
160 if (!a || !b) 168 if (!a || !b)