Archived
1
This repository has been archived on 2020-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
linked-list/Implementation/linked_list.h

18 lines
351 B
C

#pragma once
typedef struct Node {
struct Node* next, * prev;
void* data;
} Node;
void list_print(Node* head, void (*print_func)(void*));
void list_push(Node** head, void* data);
void list_append(Node** head, void* data);
void list_insert(Node* prev_node, void* data);
Node* list_get(Node* head, unsigned index);
void list_remove(Node* node);