A data structures library in C.
CreateNode()
: create new node whose members are key/value pairs (currently supporting strings only)DestroyNode()
: free memory used by Node and its members
Wrapper struct to hold references to head and tail plus maintain an ongoing length count.
CreateLinkedList()
: created new linked listDestroyLinkedList()
: delete all nodes and then delete linked listll_append()
: append node to linked listll_display()
: display linked listll_delete_node()
: delete first matching nodell_search()
: search for node
Wrapper struct to hold references to head and tail plus maintain ongoing length count.
CreateQueue()
: create new queueDestroyQueue()
: delete all nodes in queue and then delete queueq_enqueue()
: add new node to queueq_dequeue()
: remove node from head of queueq_display()
: display all nodes in queue
Wrapper struct to hold reference to top of stack and count.
CreateStack()
: allocate memory for new stack;DestroyStack()
: destroy all nodes in stack and free memory for stacks_pop()
: returns->top
Node and sets->top = s->top->next
s_push()
: push new Node to top of stack and points->top
to it
CreateHashTable()
: creates new hashtable (size specified as argument)DestroyHashTable()
: TODOhash()
: simple hashing function that sums the ASCII values of a string and mods by hashtable sizeht_insert()
: inserts new key/value pair into hash tableht_display()
: pretty-prints hash tableht_get()
: gets matchingvalue
givenkey
TODO
TODO
TODO
TODO