and even more GLIBC feature test fun
[rofl0r-microsocks.git] / sblist_delete.c
bloba18209aa5510ddb75dc3fc715a38341b8b99ebde
1 #include "sblist.h"
2 #include <string.h>
4 void sblist_delete(sblist* l, size_t item) {
5 if (l->count && item < l->count) {
6 memmove(sblist_item_from_index(l, item), sblist_item_from_index(l, item + 1), (sblist_getsize(l) - (item + 1)) * l->itemsize);
7 l->count--;