OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

4.10.3 dc_clt_codeconv_exec - Executing character code conversion

Organization of this subsection
(1) Form
(2) Purpose
(3) Arguments set by UAPs
(4) Arguments for which a value is retuned
(5) Return values
(6) Notes

(1) Form

TP1/Client/W DLL or TP1/Client/P DLL

 
#include <dcvclt.h>
DCLONG dc_clt_codeconv_exec(DCLONG request, 
                       char CLTFAR *source,
                       DCULONG CLTFAR *source_len,
                       char CLTFAR *dest,
                       DCULONG CLTFAR *dest_len,
                       DCULONG cnthdl, DCLONG flags)
 

(2) Purpose

Executes character code conversion as follows:

Converts character strings consisting of JIS code or Shift JIS code into character strings of EBCDIC, EBCDIK or KEIS codes. Converts character strings consisting of EBCDIC, EBCDIK or KEIS code into character strings of JIS or Shift JIS code.

(3) Arguments set by UAPs

(4) Arguments for which a value is retuned

(5) Return values

Return Value Value (decimal) Meaning
DC_OK 0 Normal termination
DCCLTER_INVALID_ARGS -2501 A value set for the argument is invalid.
DCCLTER_NO_BUFS -2504 Insufficient memory. The function returns this value also when the control table contains an invalid handle value and when the specified character length covers the first byte of a two-byte code that is contained in the character string to be converted.
DCCLTER_INVALID_CODE -2550 A character string contains an invalid code.
DCCLTER_OVERFLOW -2551 The length of the converted character string exceeds the area prepared by the CUP.

(6) Notes