List primitive complete

Published November 02, 2005
Advertisement
I finished my list primitive and integrated it with the engine. Its not quite a true linked-list in that it doesn't have any concept of order. It doesn't provide previous/next iteration; only unordered enumeration. Here's the interface:
struct util_list *util_list_ini(unsigned size, void (*del)(void *)); // constructs the list objectvoid util_list_del(struct util_list *);                              // deletes the list objectvoid *util_list_add(struct util_list *);                             // adds an elementvoid util_list_rem(struct util_list *, void *);                      // removes an elementvoid *util_list_enum(struct util_list *);                            // enumerates the elements
Previous Entry stuff...
Next Entry Zz
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement