Good evening -
I am having some difficulty with a field that is being read from a text input file. I need to determine if the value is an odd number. However, when I try to calculate using the field I get sharing violations. I've even moved it to another integer field, but I get lvalue errors. Here's the code snippet below. Am I using a pointer incorrectly here?
while ((fscanf(fpNumbr, "%d", &numbIn)) == 1)
oddno = fscanf(fpNumbr, "%d", numbIn);
if (oddno % 2 == 0)