To determine if a given year is a leap year, call the date is leap year function, date_isleapyr():
int date_isleapyear(year) int year; /* Year to test */
This function returns a 0 if the year is not a leap year and a non-zero value if the year is a leap year.