From c5018659d733dbd77f17905379749deb31f4c614 Mon Sep 17 00:00:00 2001 From: stmctommyau Date: Sat, 16 Sep 2023 17:40:57 +0800 Subject: [PATCH] important buf fix --- normal_user.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/normal_user.h b/normal_user.h index 4fbecb9..7dbd392 100644 --- a/normal_user.h +++ b/normal_user.h @@ -36,7 +36,14 @@ void normal_menu(){ switch (choice) { case 1://List items - list_items(); + struct inventory db = read_db_invt(); + char * SortItems[] = { + "Name", + "Price", + "Brand", + "Category", + }; + lister(&db,NULL,db.db.row_count,"List of items",SortItems,4,print_page,sortItems,show_item); break; case 2://Search item search_item(show_item);