Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (M)
Guardian Procedure Calls Reference Manual522629-013
9-32
MBCS_MB_TO_SB_ Procedure
MBCS_MB_TO_SB_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Summary
This procedure and the companion MBCS_SB_TO_MB_ procedure allow conversion
of the ninety-four displayable characters of the ASCII character set between 1-byte
ASCII and characters of the specified MBCS. The MBCS_MB_TO_SB_ procedure
converts multibyte characters to the corresponding 1-byte ASCII characters.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
mbytestring:mbytecount input:input
STRING .EXT:*, INT:value
specifies a text string with ASCII-equivalent characters in the multibyte character
set identified by
charset. mbytestring is the input text string to be converted
by this procedure; it must be exactly
mbytecount bytes long.
#include <cextdecs(MBCS_MB_TO_SB_)>
void MBCS_MB_TO_SB_ ( char *mbytestring
,short mbytecount
,char *sbytestring
,short sbytecount
,short *rbytecount
,[ short charset ]
,[ short *charinfo ] );
CALL MBCS_MB_TO_SB_ ( mbytestring:mbytecount ! i:i
,sbytestring:sbytecount ! o:i
,rbytecount ! o
,[ charset ] ! i
,[ charinfo ] ); ! o