home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
tc130.arc
/
ISLEAP.DOC
< prev
next >
Wrap
Text File
|
1987-08-20
|
626b
|
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 SMTCx.LIB for the Turbo-C Compiler.