home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
272_01
/
isleap.doc
< prev
next >
Wrap
Text File
|
1987-07-17
|
628b
|
39 lines
NAME
isleap -- check if year is a leap year
SYNOPSIS
r = isleap(year);
int r; returns TRUE if leapyear, else FALSE
int year; year value
DESCRIPTION
This function simply checks the specified year to return a
TRUE if the specified year is a leap year.
EXAMPLE
if(isleap(1986)) printf("This is a leap year");
else printf("This is not a leap year");
This function is found in SMDLx.LIB for the Datalight Compiler.