arraylist length function added

This commit is contained in:
2020-07-22 14:46:54 +02:00
parent a367d3b6dc
commit ff58a623fe
2 changed files with 5 additions and 0 deletions

View File

@ -54,3 +54,7 @@ void* acl_arraylist_remove(void *arraylist_void, size_t index) {
}
return arraylist;
}
size_t acl_arraylist_len(void *arraylist) {
return ((union arraylist_meta*)arraylist - 1)->len;
}