summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;