comparison array.c @ 123:59745a235d16

Fix array.c too
author David Demelier <markand@malikania.fr>
date Fri, 02 Mar 2012 21:31:37 +0100
parents 68784ea3fabb
children 5917096facb9
comparison
equal deleted inserted replaced
122:2d6c466e56dc 123:59745a235d16
187 187
188 for (i = 0; i < arr->length; ++i) { 188 for (i = 0; i < arr->length; ++i) {
189 elm = (char *)arr->data + OFFSET(i); 189 elm = (char *)arr->data + OFFSET(i);
190 190
191 if (memcmp(elm, data, arr->unit) == 0) 191 if (memcmp(elm, data, arr->unit) == 0)
192 array_remove(arr, i); 192 array_iremove(arr, i);
193 } 193 }
194 } 194 }
195 195
196 /* 196 /*
197 * Swap the two elements referenced by index `i1' and `i2'. This function needs 197 * Swap the two elements referenced by index `i1' and `i2'. This function needs