File: isleap.c

package info (click to toggle)
hodie 1.4-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 144 kB
  • ctags: 104
  • sloc: ansic: 1,132; makefile: 75
file content (15 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (7)
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;
}