aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 87f2f01..6b91ebe 100644
--- a/main.c
+++ b/main.c
@@ -47,6 +47,9 @@ void insert(struct list *student_list) {
// Get a student name from the terminal input, remove it from the list and
// deallocate the appropriate memory (if needed).
void delete(struct list *student_list) {
+ list(student_list);
+ printf("Name of student to delete:\n");
+
char *name = read_input();
if (!name) {
printf("Failed to read student name\n");