This error message at the "void printpersontotal" function is making me insane (I guess I have been looking at this code too long)
Please help!
Thanks!
(->) -marks where cursor is located when indicating error.
I am including the function that calls the "void printpersontotal" function:
void processdetail()
{int pcontrol, dcontrol, scontrol;
float ptotal = 0.0;
float dtotal = 0.0;
float stotal = 0.0;
fread(&person, sizeof(person), 1, fileptr);
pcontrol = person[i].pnumber;
dcontrol = person[i].dnumber;
scontrol = person[i].snumber;
do
{if(person[i].dnumber != dcontrol)
{printpersontotal(&ptotal, &pcontrol, &dtotal);
printdeparttotal(&dtotal, &dcontrol);
}
else
if(person[i].pnumber != pcontrol)
{printpersontotal(&ptotal, &pcontrol, &dtotal);
printdetailline();
ptotal += person[i].amount;
}while (fread(&person, sizeof(person), 1, fileptr));
printpersontotal(&ptotal, &pcontrol, &dtotal);
printdeparttotal(&dtotal, &dcontrol);
printstoretotal(&stotal, &scontrol);
}
(->) void printpersontotal(float *ptotal, int *pcontrol, float *dtotal)
{fprintf(stream, "\n\r Person Total %5.2f \n\n\r," *ptotal);
dtotal += ptotal;
ptotal = 0;
pcontrol = person[i].pnumber;
linecount += 3;
}