The book _C Interfaces and Implementation_ is nothing but library interfaces like this and their implementations.
You are, for whatever it's worth, better off defaulting to a variable-length array than to a linked list.
You are, for whatever it's worth, better off defaulting to a variable-length array than to a linked list.
really tptacek? its O(1) ammortized over time, and when N grows it becomes really slow because it involves reallocation and a linear copy of all elements.