5 unsigned long int money = 0;
6 unsigned long int num_items = 0;
7 unsigned long int items_sold = 0;
8 struct status_t status[MAX_ITEMS+1];
15 status[0].item_name = "cola";
16 status[0].price = 230;
17 status[0].times_sold = 0;
18 status[1].item_name = "mate";
19 status[1].price = 150;
20 status[1].times_sold = 0;
21 for (c = 2; c < MAX_ITEMS; ++c)
22 status[c].item_name = NULL;
26 status[0].times_sold=23;
27 status[1].times_sold=42;