Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (M)
Guardian Procedure Calls Reference Manual—522629-013
9-49
MBCS_TESTBYTE_ Procedure
MBCS_TESTBYTE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Related Programming Manual
Summary
The MBCS_TESTBYTE_ procedure returns the identification of a specified byte 
contained within a text string of mixed data. 
Syntax for C Programmers    
Syntax for TAL Programmers          
Parameters
result returned value
INT
returns the identification of the byte contained in 
buffer[testindex].
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
#include <cextdecs(MBCS_TESTBYTE_)>
short MBCS_TESTBYTE_ ( char *buffer 
 ,short bytecount 
 ,short *testindex
 ,[ short charset ] 
 ,[ short *charinfo ] );
result := MBCS_TESTBYTE_ ( buffer ! i
 ,bytecount ! i
 ,testindex ! i,o
 ,[ charset ] ! i
 ,[ charinfo ]); ! o










