5 unsigned long int money = 0;
6 unsigned long int num_items = 0;
7 uc num_credit_items = 0;
8 unsigned long int items_sold = 0;
9 struct status_t status[MAX_ITEMS+1];
10 struct credits_t credits[MAX_CREDIT_ITEMS+1];
18 status[0].item_name = "cola";
19 status[0].price = 230;
20 status[0].times_sold = 0;
21 status[1].item_name = "mate";
22 status[1].price = 150;
23 status[1].times_sold = 0;
24 for (c = 2; c < MAX_ITEMS; ++c)
25 status[c].item_name = NULL;
30 status[0].times_sold=23;
31 status[1].times_sold=42;