cwbDT_HexToASCII

Purpose

Translates binary data to the ASCII hex representation. Two ASCII characters are stored in the target for each byte of source data.

Unicode version

cwbDT_HexToWide

Syntax

 
unsigned int CWB_ENTRY cwbDT_HexToASCII(
                             char         *target,
                             char         *source,
                             unsigned long length);

Parameters

char * target - output
Pointer to the target (ASCII hex) data.
char * source - input
Pointer to the source data.
unsigned long length - input
Number of bytes of source data to translate.

Return Codes

The following list shows common return values.

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

Usage

For 'length' bytes of source data 'length'*2 bytes of target data will be stored. The caller must make sure that there is adequate space to hold the target information.