-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinearLinkedListNode.h
More file actions
27 lines (25 loc) · 961 Bytes
/
LinearLinkedListNode.h
File metadata and controls
27 lines (25 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <stdlib.h>
#include "MathLibrary.h"
#include <stdio.h>
#ifndef __LINEAR_LINKED_LIST_NODE
typedef struct lllN {
void* data;
struct lllN* next;
}LinearLinkedListNode,LLLNode;
#define __LINEAR_LINKED_LIST_NODE
#endif // !__LINEAR_LINKED_LIST_NODE
//Inits the manager
void InitLinearLinkedListNode(LLLNode**);
//Pushes (insert) a node into list first place
void PushLinearLinkedListNode(LLLNode**, void*);
//Pops node from list (retruninig and remoaving first value)
void* PopLinearLinkedListNode(LLLNode**);
//Insert after the givven node (the passed LinearLinkedListNode
//can be manager but not required to be)
void InsertLinearLinkedListNode(LLLNode*, void*);
//Removes the node after the givven node (the passed LinearLinkedListNode
//can be manager but not required to be)
void* RemoveLinearLinkedListNode(LLLNode*);
//Ptints givven list
void PrintsLinearLinkedListNode(LLLNode*,char*(*toString)(void*));