OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
isleap.c
Go to the documentation of this file.
1 
2 /* determine if year is a leap year or not */
3 int isleap(int year) {
4  if (((year % 400) == 0) || (((year % 4) == 0) && ((year % 100) != 0)))
5  return 1;
6  else
7  return 0;
8 }
int isleap(int year)
Definition: isleap.c:3