Business-US-USPS-IMB
view release on metacpan or search on metacpan
libs/usps4cb.c view on Meta::CPAN
/*******************************************************************************
** usps4cb.c
**
** U.S. Postal Service Intelligent Mail Barcode Encoder V1R2M2
**
** warning - as written, this code generates correct barcodes - changes must
** be verified as producing valid barcodes
*******************************************************************************/
#pragma map(usps4cb,"USPS4CB")
#pragma map(uspsvcb,"USPSVCB")
/*******************************************************************************
** Change Record
** -------------
** Date Change Flag Who Description
** ---------- ----------- --- --------------------------------------------------
** 2005/10/26 TPG009 RBP Update eyecatcher version & date V1R2M2 2011/05/14
** 2011/05/14 TPG008 RBP Remove null termination BarStringPtr[65], caused overlay
** 2005/10/26 TPG007 RBP Update eyecatcher version & date V1R2M0 2008/03/03
** 2005/10/26 TPG006 RBP Add entry point 'uspsvcb'
** 2005/10/22 TPG005 RBP Change entry point to 'usps4cb'
** 2005/10/19 TPG004 RBP Add eyecatcher to identify this module
** 2005/10/18 TPG003 RBP Fix check for NULL parameters
** 2005/10/10 TPG002 RBP Add SAS/C control cards like <resident.h>
** 2005/10/10 TPG001 RBP D.Self:changes for mainframe input string nulls
** 2005/09/01 None RBP Upload Windows code ASCII -> EBCDIC unchanged
**
*******************************************************************************/
#define NO_ABEND /* TPG002 */
#define NO_IO /* TP0002 */
/*#include <resident.h>*/ /* TPG002 */
/*******************************************************************************
**
** Includes
**
*******************************************************************************/
#include <stdio.h>
#include <string.h>
#include "usps4cb.h" /* TPG005 */
/*******************************************************************************
**
** Compilation Control
**
*******************************************************************************/
#define SELF_TEST
/* #define USE_64_BIT_MATH */
/*******************************************************************************
**
** Definitions
**
*******************************************************************************/
#ifndef BOOLEAN
#define BOOLEAN int
#endif
#ifndef TRUE
#define TRUE (0==0)
#endif
#ifndef FALSE
#define FALSE (0==1)
#endif
#define unsigned32 unsigned int
#ifdef USE_64_BIT_MATH
#define unsigned64 unsigned long long
#endif
/*******************************************************************************
( run in 1.669 second using v1.01-cache-2.11-cpan-7fcb06a456a )