mbgtools-lx  4.2.8
pcpsutil.h File Reference
#include <pcpsdefs.h>
#include <use_pack.h>

Go to the source code of this file.

Macros

#define _ext   extern
 

Functions

static __mbg_inline int pcps_exp_year (int year, int year_lim)
 Expand a 2-digit year number to a 4-digit year number. More...
 

Macro Definition Documentation

◆ _ext

#define _ext   extern

Definition at line 85 of file pcpsutil.h.

Function Documentation

◆ pcps_exp_year()

static __mbg_inline int pcps_exp_year ( int  year,
int  year_lim 
)
static

Expand a 2-digit year number to a 4-digit year number.

The resulting year number includes the century and is in the range [year_lim ... ( year_lim + 99 )].

Parameters
[in]yearThe 2-digit year number to be converted
[in]year_limThe smallest 4-digit year number to be returned
Returns
The resulting 4 digit year number including century

Definition at line 113 of file pcpsutil.h.

Referenced by mbg_snprint_date_time(), and mbg_str_date().