cwbDT_Bin2ToBin2

Purpose

Reverses the order of bytes in a 2-byte integer. This function can be used for translating a 2-byte integer to or from the iSeries™ server format.

Unicode version

None.

Syntax

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

Parameters

char * target - output
Pointer to the target (2 byte integer).
char * source - input
Pointer to the source (2 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 and the target data must not overlap. The following example shows the result of the translation: