ics_cli/src/list_handling.h

14 lines
371 B
C
Raw Normal View History

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];
char end_date[256];
2023-08-15 16:31:07 +02:00
struct event *next;
};
void print_list(struct event *head);
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);
void print_upcoming(struct event *head, char current_date[], int show_all_events);