From 0d9aa82da7d665c66c996ff45584e7a3de39d629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 26 Jan 2021 13:40:52 +0100 Subject: main.h --- main.c | 7 +------ main.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 main.h diff --git a/main.c b/main.c index 6173f26..87f2f01 100644 --- a/main.c +++ b/main.c @@ -1,13 +1,8 @@ -#include "list.h" +#include "main.h" #include #include #include -struct student { - char *name; - struct list_elem elem; -}; - // Read a line from stdin, strip the eventual newline and return a pointer // to the string. Remember to free the pointer. char *read_input() { diff --git a/main.h b/main.h new file mode 100644 index 0000000..79c81ad --- /dev/null +++ b/main.h @@ -0,0 +1,11 @@ +#include "list.h" + +struct student { + char *name; + struct list_elem elem; +}; + +void insert(struct list *student_list); +void delete(struct list *student_list); +void list(struct list *student_list); +void quit(struct list *student_list); -- cgit v1.2.1