is_leap_year.c File Reference

Find if year is a leap year or not. More...

#include <utils.h>
Include dependency graph for is_leap_year.c:

Go to the source code of this file.

Functions

short int is_leap_year (int year)
 Find string in vector and return index.

Detailed Description

Find if year is a leap year or not.

Definition in file is_leap_year.c.


Function Documentation

short int is_leap_year ( int  year  ) 

Find string in vector and return index.

Parameters:
[in] year Year to test
Returns:
Is year a leap year or not

Definition at line 58 of file is_leap_year.c.

Referenced by find_the_days().

00058                        {
00065   if ((year & 3) == 0 && ((year % 25) != 0 || (year & 15) == 0))
00066   {
00067     return 1;
00068   }
00069   else
00070     return 0;
00071 }


Generated on 12 May 2016 for DSCLIM by  doxygen 1.6.1