Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
xtime.cpp File Reference
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
#include "xtime.h"

Go to the source code of this file.

Macros

#define IS_LEAP(y)
 
#define LEAPS_THRU_END_OF(y)
 

Functions

int Max_Day (int month, int year)
 

Macro Definition Documentation

◆ IS_LEAP

#define IS_LEAP ( y)
Value:
((y) % 4) == 0 && (! ((y) % 100) == 0 || ((y) % 400) == 0)

Definition at line 49 of file xtime.cpp.

◆ LEAPS_THRU_END_OF

#define LEAPS_THRU_END_OF ( y)
Value:
((y) / 4 - (y) / 100 + (y) / 400)

Definition at line 50 of file xtime.cpp.

Function Documentation

◆ Max_Day()

int Max_Day ( int month,
int year )

Definition at line 130 of file xtime.cpp.