[common] stringlist: implement item removal
This commit is contained in:
1 parent
f0beedb5ba
commit
e11246d46e
2 files changed
+11
-5
No files matched your search
@@ -63,6 +63,11 @@ int stringlist_push(StringList sl, char * str)
|
||||
return index;
|
||||
}
|
||||
|
||||
void stringlist_remove(StringList sl, unsigned int index)
|
||||
{
|
||||
vector_remove(&sl->vector, index);
|
||||
}
|
||||
|
||||
unsigned int stringlist_count(StringList sl)
|
||||
{
|
||||
return vector_size(&sl->vector);
|
||||
|
||||
Reference in new issue
Block a user