2023-08-15 16:31:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct event {
|
|
|
|
char summary[256];
|
2023-08-24 01:10:53 +02:00
|
|
|
char start_date[256];
|
2023-08-24 01:55:50 +02:00
|
|
|
char end_date[256];
|
2023-08-15 16:31:07 +02:00
|
|
|
struct event *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
void print_list(struct event *head);
|
2023-08-24 01:55:50 +02:00
|
|
|
void sorted_insert(struct event **head, char start_date[], char end_date[], char summary[]);
|
2023-08-15 16:31:07 +02:00
|
|
|
void free_list(struct event *head);
|
2023-09-17 10:27:52 +02:00
|
|
|
void print_upcoming(struct event *head, char current_date[], int show_all_events);
|