+ item_list[todo_length] = NULL; // last item needs to be a null pointer for some reason?
+
+ todo_menu = new_menu(item_list);
+
+ getmaxyx(win, wheight, wwidth);
+ set_menu_win(todo_menu, win);
+ set_menu_sub(todo_menu, derwin(win, wheight-2, wwidth-2, 1, 1));
+ set_menu_mark(todo_menu, "");
+
+ box(win, 0, 0); //temp
+
+ return todo_menu;
+}
+
+void
+free_todo(char** todo_list, int todo_length)
+{
+ // probably check if list is too short or too long
+ for (int i = 0; i < todo_length; i++) {
+ free(todo_list[i]);
+ }
+ free(todo_list);