Guardian Programming Reference Summary for C
Functions Summary (G-N)
Guardian Programming Reference Summary for C—522630-001
6-26
external-form
MBCS_TESTBYTE_
Returns the identification of a specified byte contained within a text string of mixed
data.
result
-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)
#include <cextdecs(MBCS_TESTBYTE_)>
short MBCS_TESTBYTE_ ( char *buffer /* i */
,short bytecount /* i */
,short *testindex /* i,o */
,[ short charset ] /* i */
,[ short *charinfo ] );/* o */
0 = 1-byte character
1 = First byte of a multibyte character
2 = Intermediate byte of a multibyte character
3 = Last byte of a multibyte character