Purpose
'Translates' (copies unless character value
less than 0x40 is encountered) EBCDIC data to EBCDIC.
Syntax
unsigned int CWB_ENTRY cwbDT_EBCDICToEBCDIC(
char *target,
char *source,
unsigned long length);
Parameters
- char * target - output
- Pointer to the target data.
- char * source - input
- Pointer to the source data.
- unsigned long length - input
- Number of bytes of target 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.
- other
- Offset of the first untranslated character plus one.
Usage
The caller must make sure that there is adequate
space to hold the target information.