C-library to store and retrieve data items sequentially