repo.or.cz
/
rofl0r-microsocks.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add README
[rofl0r-microsocks.git]
/
sblist_delete.c
blob
a18209aa5510ddb75dc3fc715a38341b8b99ebde
1
#include
"sblist.h"
2
#include <string.h>
3
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
--;
8
}
9
}