-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLinkedList.h
40 lines (32 loc) · 878 Bytes
/
LinkedList.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
// Singly Linked List ADT Interface
// Written By Benny Hwang Jan 2018
#ifndef LINKEDLIST_H
#define LINKEDLIST_H
#include <stdio.h>
typedef struct LListRep *LList;
typedef struct node *NodeT;
NodeT makeNode(char *, int);
LList newLList();
void freeLL(LList);
void showLL(LList);
LList append(LList, char *);
LList appendNode(LList, NodeT);
LList deleteHead(LList);
LList deleteTail(LList);
LList deleteByID(LList, int);
int searchNodeID(LList, char *);
char *searchNodeURL(LList, int);
int lenLL(LList);
void changeNodeID(LList, char *);
int getID(NodeT);
NodeT getHead(LList);
NodeT getNext(NodeT);
NodeT getTail(LList);
char *getURL(NodeT);
void insertPR(NodeT, double);
double getPR(NodeT);
NodeT copyNode(NodeT);
void swapNodes(LList, NodeT, NodeT);
void sortedInsert(LList, NodeT, int);
LList insertionSort(LList, int);
#endif