Calls to CEEQCEN and CEESCEN in C or C++

/*Module/File Name:  EDCCWIN  */
/*******************************************************************/
/* Demonstrates how to use CEEQCEN and CEESCEN to query and        */
/* set the century window.                                         */
/*******************************************************************/

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <leawi.h>
#include <ceeedcct.h>

int main (void) {

_INT4 oldcen, tempcen;
_FEEDBACK qcenfc,scenfc;

/* Call CEEQCEN to retrieve and save current century window  */
  CEEQCEN ( &oldcen , &qcenfc );
  if ( _FBCHECK ( qcenfc , CEE000 ) != 0 ) {
     printf("CEEQCEN failed with message number %d\n",
            qcenfc.tok_msgno);
     exit(1999);
  }

 /* Call CEESCEN to temporarily change century window to 30  */
  tempcen = 30;
  CEESCEN ( &tempcen , &scenfc );
  if ( _FBCHECK ( scenfc , CEE000 ) != 0 ) {
    printf(
    "CEESCEN (1st call) failed with message number %d\n",
           scenfc.tok_msgno);
    exit(2999);
  }

/* Perform date processing with 2-digit years...             */⋮
 /* Call CEESCEN again to reset century window               */
  CEESCEN ( &oldcen , &scenfc );
  if ( _FBCHECK ( scenfc , CEE000 ) != 0 ) {
    printf(
    "CEESCEN (2nd call) failed with message number %d\n",
           scenfc.tok_msgno);
    exit(3999);
  }
  exit (0);
}