View Single Post
Old 09-15-2014, 02:58 AM   #12
Question the trends!
REACTOR's Avatar
Join Date: Apr 2011
Location: Malaysia
Posts: 1,162
Default Re: Problem: Functions In C

Well you guys were certainly right about there being an index skip,

day_of_m = day_of_m + 1;

This line was my problem, I forgot that when the previous loop was doing it's thing, finishing at the end, it moved the index up by one, and then with this function, it also lead the index up by one too.

Well anyway guys, thanks for your help.
REACTOR is offline   Reply With Quote