-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathts.c
More file actions
37 lines (31 loc) · 1022 Bytes
/
ts.c
File metadata and controls
37 lines (31 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <stdio.h>
#include "Monthdays.h"
// int MonthDate(int doy,int year)
// {
// int MD_date, MD_month;
// int MD_dates[370];
// int MD_months[370];
// int MD_num = 0;
// for (int i = 0; i < 12; i++)
// {
// for (int i2 = 0; i2 < monthdays(year, i + 1); i2++)
// {
// ++MD_num;
// MD_dates[MD_num] = i2 + 1;
// MD_months[MD_num] = i + 1;
// // printf("%d : %d\n", MD_dates[MD_num], MD_months[MD_num]);
// }
// }
// MD_month = MD_months[doy];
// MD_date = MD_dates[doy];
// // printf("------------------\n");
// // printf("%d : %d", MD_month , MD_date);
// int MD_result = (MD_month * 100) + MD_date;
// return MD_result;
// }
char *monthname(int month_mn)
{
char *month_names[] = {"January","February","March","April","May","June","July","August","September","Octorber","November","December"};
// printf("%s",month_names[month_mn - 1]);
return month_names[month_mn - 1];
}