home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
rettig
/
source
/
lastday.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-21
|
479b
|
24 lines
/*********
* LASTDAY.C
*
* by Tom Rettig
*
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
* Syntax: LASTDAY( <month>, <year> )
* Return: Last day of the month
* Zero if invalid <month> or <year>
* Note : Valid month is 1..12, year is 1..9999
********/
#include "trlib.h"
TRTYPE lastday()
{
if ( PCOUNT == 2 && ISNUM(1) && ISNUM(2) )
_retni( _tr_ldm(_parni(1),_parni(2)) );
else
_retni( ERROR );
}