important buf fix
This commit is contained in:
parent
6a95897df7
commit
c5018659d7
@ -36,7 +36,14 @@ void normal_menu(){
|
|||||||
switch (choice)
|
switch (choice)
|
||||||
{
|
{
|
||||||
case 1://List items
|
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;
|
break;
|
||||||
case 2://Search item
|
case 2://Search item
|
||||||
search_item(show_item);
|
search_item(show_item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user