Integers value is being wrongly altered
For some reason, the value held within my integer is being altered by this one function. I've been able to narrow the bug down to this one function by printing the contents of this integer step by step as the procedural code executes.
This integer stores the number of lines in my lottery.dat file which is 1185, however after this function is being invoked, the value is changing to 1024, this function doesn't even use this integer variable in question, this is making it very difficult for me to comprehend the problem and the reason for it occuring.
Any feedback would be appreciated.
Quote:
Value: 1185
BUG after 'setAlphaPosition', Value: 1024
The change in the integers value is occuring when setAlphaPosition is called with two parameters being passed to it, none of which are the integer in question.
Edit, please see link, lack of word wrap in code tags stretches this thread.
Code:
http://www.queslib.com/err/lotteryProg.c