Guardian Programming Reference Summary for C

Functions Summary (G-N)
Guardian Programming Reference Summary for C522630-001
6-21
MBCS_EXTERNAL_TO_TANDEM_
Translates a text string from a specified external format to the Tandem internal text
format.
return value:
external-form
#include <cextdecs(MBCS_EXTERNAL_TO_TANDEM_)>
short MBCS_EXTERNAL_TO_TANDEM_
( [ long *source-string ] /* i,o */
,[ long *destination-string ] /* i,o */
,short source-length /* i */
,short *maximum-length /* i,o */
,[ short intermediate ] /* i */
,short external-form /* i */
,[ short *finished-length ] /* o */
,[ char *shift-to-MBCS ] /* i */
,[ char *shift-to-one-byte ] );/* i */
0 = Successful completion of the translation
-1 = Translation truncated due to lack of destination buffer space
-2 = Unknown translation requested
-3 = Invalid source string length
-4 = Invalid character in Kanji-only source string
-5 = Control string parameter too long
-6 = Translation truncated due to lack of space in screen field
29 = Required parameter missing
0 = IBM Kanji only (without subfield strings)
1 = IBM Kanji EBCDIC
2 = IBM Kanji/Katakana-EBCDIC
3 = JEF (Fujitsu) Kanji only
4 = JEF (Fujitsu) Kanji EBCDIC
5 = JEF (Fujitsu) Kanji/Katakana-EBCDIC
6 = NEC Kanji only (not implemented)
7 = NEC Kanji/JIS X0201 (not implemented)
8 = JIS X0208 Kanji/JIS X0201 (was C6226/C6220)