openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/misc-utils/cal.c
static int day_in_year(const struct cal_control* ctl, int day, int month,
                       int32_t year)
{
    int i, leap;

    leap = leap_year(ctl, year);
    for (i = 1; i < month; i++)
        day += days_in_month[leap][i];
    return day;
}
/*
 * day_in_year --
 *	return the 1 based day number within the year
 */
day_in_year
return the 1 based day number within the year
day_in_year return the 1 based day number within the year
static int day_in_year(const struct cal_control* ctl, int day, int month,
                       int32_t year)
{
    int i, leap;
    leap = leap_year(ctl, year);
    for (i = 1; i < month; i++)
        day += days_in_month[leap][i];
    return day;
}
static int day_in_year ( const struct cal_control * ctl , int day , int month , int32_t year ) { int i , leap ; leap = leap_year ( ctl , year ) ; for ( i = 1 ; i < month ; i ++ ) day += days_in_month [ leap ] [ i ] ; return day ; }
day_in_year
      return the 1 based day number within the year
day_in_year return the 1 based day number within the year