Posted on 2005-03-09
To all Wizards...
I am looking for simple "C" source code for the MoonPhase calculation - going from (in the following order):
That goes from a (1)new moon > to a (2)new right qtr moon
> to a (3)new right half moon, > then to a new (4)3/4 qtr
moon, > then to a (5)new full moon,
then... to a (6)left 3/4 moon, >
then to a (7)left 1/2 moon, > then to a (8)left qtr moon. Then it starts over at a new moon. after the calculations are doing, the function returns a number (1 thru 8), as indicated by the (#). Return a zero 0 for an error.
So there you go, can you handle it. I will make it worth your while points-wise.