diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-05 21:43:04 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-05 21:43:04 +0800 |
| commit | df7834390128a1744e45863e8790d748c38582b8 (patch) | |
| tree | d5cf139b479294c0521e4a97c934981969d10957 /5/9.c | |
| parent | 87761c2c54782588c0a5a7f0a68eabb08407e825 (diff) | |
| download | k&r-exercises-df7834390128a1744e45863e8790d748c38582b8.tar.gz | |
5.9
Diffstat (limited to '5/9.c')
| -rw-r--r-- | 5/9.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ static char daytab[2][13] = { {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}}; -/* Sets day of year from month and day */ +/* Sets day of year from month and day using ptrs instead of indexes */ int day_of_year(int year, int month, int day) { int i, leap; @@ -14,7 +14,7 @@ int day_of_year(int year, int month, int day) { return day; } -/* Sets month and day from day of year */ +/* Sets month and day from day of year using ptrs instead of indexes */ void month_day(int year, int yearday, int *pmonth, int *pday) { int i, leap; |
