cwbDT_Bin4ToBin4

Purpose

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

Unicode version

None.

Syntax

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

Parameters

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