MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / DoublyLinkedListInitialize

Function DoublyLinkedListInitialize

source/src/utils/doublylinkedlist.c:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <assert.h>
12
13void DoublyLinkedListInitialize(DoublyLinkedList *list,
14 NodeMemoryAllocator allocator,
15 NodeMemoryDeallocator deallocator) {
16 list->first = NULL;
17 list->last = NULL;
18 list->allocator = allocator;
19 list->deallocator = deallocator;
20}
21
22void DoublyLinkedListDestroy(DoublyLinkedList *list) {
23 DoublyLinkedListNode *iterator = list->first;

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68