ics_cli/src/list_handling.h

13 lines
299 B
C
Raw Normal View History

2023-08-15 16:31:07 +02:00
#pragma once
struct event {
char summary[256];
char date[256];
struct event *next;
};
void print_list(struct event *head);
void sorted_insert(struct event **head, char date[], char summary[]);
void free_list(struct event *head);
void print_upcoming(struct event *head, char current_date[]);