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

Function DoublyLinkedListNodeCreate

source/src/utils/doublylinkedlist.c:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36DoublyLinkedListNode *DoublyLinkedListNodeCreate(
37 const void *const data,
38 NodeMemoryAllocator const
39 allocator) {
40 DoublyLinkedListNode *new_node = (DoublyLinkedListNode *)allocator();
41 new_node->data = (void *)data;
42 return new_node;
43}
44
45void DoublyLinkedListNodeDestroy(const DoublyLinkedList *const list,
46 DoublyLinkedListNode **node) {

Callers 5

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68