comparison gui/util/string.c @ 34685:311b47301ea7

Remove gstrcasecmp(). This function isn't necessary. strcasecmp() can be used just as well, because both arguments to the gstrcasecmp() calls have been checked to be not NULL prior to the call.
author ib
date Fri, 24 Feb 2012 17:26:35 +0000
parents 531c69f090da
children 1edb306bc754
comparison
equal deleted inserted replaced
34684:b03481253518 34685:311b47301ea7
159 return 0; 159 return 0;
160 if (!a || !b) 160 if (!a || !b)
161 return -1; 161 return -1;
162 162
163 return strcmp(a, b); 163 return strcmp(a, b);
164 }
165
166 int gstrcasecmp(const char *a, const char *b)
167 {
168 if (!a && !b)
169 return 0;
170 if (!a || !b)
171 return -1;
172
173 return strcasecmp(a, b);
174 } 164 }
175 165
176 /** 166 /**
177 * @brief A strncmp() that can handle NULL pointers. 167 * @brief A strncmp() that can handle NULL pointers.
178 * 168 *