#can someone tell me if this is the biggest piece of dogshit
7 messages · Page 1 of 1 (latest)
typedef struct doubly_linked_list doubly_linked_list;
typedef struct list_node list_node;
struct doubly_linked_list {
size_t count;
list_node* first_node;
list_node* last_node;
};
struct list_node {
list_node* previous_node;
list_node* next_node;
int data;
};```
if you declare the types like this then you don't need to use struct inside of the structure definitions
