Skip to content

Commit

Permalink
Moved file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasham committed May 4, 2016
1 parent b1e9264 commit d35c9f6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ static char daytab[2][13] = {
{0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};

/* Indexed */

int day_of_year(int year, int month, int day)
{
int i, leap;
Expand Down Expand Up @@ -41,12 +43,12 @@ int main()
{
int day;
int month;
int year = 19732;
int year = 1977;
int yearday;

yearday = day_of_year(year, 3, 10);
yearday = day_of_year_pointer(year, 5, 25);

month_day(year, yearday, &month, &day);
month_day_pointer(year, yearday, &month, &day);

if (yearday > 0) {
printf("yearday: %d\n", yearday);
Expand Down

0 comments on commit d35c9f6

Please sign in to comment.