Functions

CMonth

Convert a date to a character month name

Syntax

Signature
const char *CMonth( int date );

Arguments

date Date encoded as the integer YYYYMMDD, for example 20261201.

Return value

The English month name, or an empty string if the month is outside 1 through 12.

Description

Use the English month name when formatting a date for display. The month is taken from the date's `MM` field. The returned string is read-only, and a month outside `1` through `12` gives an empty string.

Example

cmonth.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   puts( CMonth( 19901010 ) );

   return 0;
}