Looking over the beginning section, up to adding items, heed Salem's suggestion -- lose the scanf()'s
This section:
Code:
printf("\n\nPlease enter number of Items you wish to enter: ");
scanf("%d",&num); /* get number of time to loop addItems(); */
while(getchar() != '\n'); /* clear buffer of crap */
for (i=1;i<=num;i++)
{
addItems(inventory,&arrayL);
}
If this is for a store like WalMart, do you really want some peon to count 246 items to figure out how many to add? Change this to:
Code:
int item;
do
{
item = addItems(inventory,&arrayL);
} while (item)
In addItems, return TRUE if an item was entered, FALSE if not.
That's as far as I got so far.