Originally posted by Griffin2020
Yes, I define it earlier (the initial post has the rest of the code), and it does return an integer.
Thanks in advance.
No, you only made the protype like this:
Code:
int PrintReport (int *PartNo, float*Price, int *QtyOnHand,int *Reorder,int *MinOrder);
You define the function like this:
Code:
int PrintReport (int *PartNo, float*Price, int *QtyOnHand,int *Reorder,int *MinOrder)
{
... //Whatever it do
return ReturnVariable;
}
And as Quzah says, you are prototyping it again. Leave out the ints and only use whatever variables you want to pass to it.
Code:
ReturnVar = PrintReport (&PartNo, &Price, &QtyOnHand, &Reorder, &MinOrder);