cwbDT_Bin4ToASCII11

Purpose

Translates a 4-byte integer stored most significant byte first to (exactly) 11 ASCII numeric characters. (The target will not be zero terminated.) This function can be used for translating numeric data from an iSeries™ server to ASCII.

Unicode version

cwbDT_Bin4ToWide11

Syntax

 
unsigned int CWB_ENTRY cwbDT_Bin4ToASCII11(
                             char *target,
                             char *source );

Parameters

char * target - output
Pointer to the target (11 byte) area.
char * source - input
Pointer to the source (4 byte integer).

Return Codes

The following list shows common return values.

CWB_OK
Successful Completion.
CWB_INVALID_POINTER
NULL pointer was passed by caller.

Usage

The source data is assumed to be stored with the Most Significant Byte first. This is the format that the iSeries server uses and is the opposite of the format used by the Intel® x86 processors.