important buf fix

This commit is contained in:
stmctommyau 2023-09-16 17:40:57 +08:00
parent 6a95897df7
commit c5018659d7
No known key found for this signature in database
GPG Key ID: 87B1991E1277F054

View File

@ -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);