aboutsummaryrefslogtreecommitdiff
path: root/linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.h')
-rw-r--r--linked_list.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/linked_list.h b/linked_list.h
index 1b2c3ca..40df9d7 100644
--- a/linked_list.h
+++ b/linked_list.h
@@ -1,22 +1,22 @@
1#ifndef __LINKED_LIST_H__ 1#ifndef __LINKED_LIST_H__
2#define __LINKED_LIST_H__ 2#define __LINKED_LIST_H__
3 3
4typedef struct node node;
5struct node{ 4struct node{
6 int value; 5 int value;
7 node* next; 6 struct node* next;
8}; 7};
9 8
10int count_ll(node* ptr); 9int count_ll(struct node* ptr);
11void prepend_ll(node **ptr, int value); 10struct node* init_ll(int value);
12void append_ll(node* ptr, int value); 11void prepend_ll(struct node **ptr, int value);
13void print_ll(node* ptr); 12void append_ll(struct node* ptr, int value);
14void free_ll(node* ptr); 13void print_ll(struct node* ptr);
15int update_node(node* ptr, int index, int value); 14void free_ll(struct node* ptr);
16int delete_node(node **ptr, int index); 15int update_node(struct node* ptr, int index, int value);
17int get_value(node *ptr, int index); 16int delete_node(struct node **ptr, int index);
18node* search_node(node *ptr, int value); 17int get_value(struct node *ptr, int index);
19void reverse_ll(node **ptr); 18struct node* search_node(struct node *ptr, int value);
19void reverse_ll(struct node **ptr);
20 20
21 21
22#endif 22#endif