File: isleap.c

package info (click to toggle)
hodie 1.4-8
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 156 kB
  • ctags: 103
  • sloc: ansic: 1,132; makefile: 74
file content (15 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "includes.h"

int hodie_isleap(int year)
{
    if(year%400 == 0)
	return 1;
    
    if(year%100 == 0)
	return 0;
    
    if(year%4==0)
	return 1;

    return 0;
}