#ifndef __LINKED_LIST_H__ #define __LINKED_LIST_H__ struct node{ int value; struct node* next; }; int count_ll(struct node* ptr); struct node* init_ll(int value); void prepend_ll(struct node **ptr, int value); void append_ll(struct node* ptr, int value); void print_ll(struct node* ptr); void free_ll(struct node* ptr); int update_node(struct node* ptr, int index, int value); int delete_node(struct node **ptr, int index); int get_value(struct node *ptr, int index); struct node* search_node(struct node *ptr, int value); void reverse_ll(struct node **ptr); #endif