summaryrefslogtreecommitdiffstats
path: root/5/9.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2022-01-05 21:43:04 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2022-01-05 21:43:04 +0800
commitdf7834390128a1744e45863e8790d748c38582b8 (patch)
treed5cf139b479294c0521e4a97c934981969d10957 /5/9.c
parent87761c2c54782588c0a5a7f0a68eabb08407e825 (diff)
downloadk&r-exercises-df7834390128a1744e45863e8790d748c38582b8.tar.gz
5.9
Diffstat (limited to '5/9.c')
-rw-r--r--5/9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/5/9.c b/5/9.c
index 62459fd..de38139 100644
--- a/5/9.c
+++ b/5/9.c
@@ -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;