mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-11-29 12:48:16 +00:00
[common] stringlist: implement item removal
This commit is contained in:
@@ -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