Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <mbstring.h>
    unsigned int _mbbtombc( unsigned int ch );

Description:
    The _mbbtombc function returns the double-byte character equivalent to
    the single-byte character ch.  The single-byte character must be in the
    range 0x20 through 0x7E or 0xA1 through 0xDF.

    Note:  This function was called  hantozen in earlier versions.

Returns:
    The _mbbtombc function returns ch if there is no equivalent double-byte
    character; otherwise _mbbtombc returns a double-byte character.


Example:
    #include <stdio.h>
    #include <mbctype.h>
    #include <mbstring.h>

    char alphabet[] = {
        "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    };

    void main()
      {
        int             i;
        unsigned short  c;

        _setmbcp( 932 );
        for( i = 0; i < sizeof( alphabet ) - 1; i++ ) {
          c = _mbbtombc( alphabet[ i ] );
          printf( "%c%c", c>>8, c );
        }
        printf( "\n" );
      }

    produces the following:

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Classification:
    WATCOM

Systems:
    DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

See Also:
    _getmbcp, _mbcjistojms, _mbcjmstojis, _mbctombb, _ismbbalnum,
    _ismbbalpha, _ismbbgraph, _ismbbkalnum, _ismbbkalpha, _ismbbkana,
    _ismbbkprint, _ismbbkpunct, _ismbblead, _ismbbprint, _ismbbpunct,
    _ismbbtrail, _mbcjistojms, _mbcjmstojis, _mbctombb, _mbbtype, _setmbcp

See Also: _getmbcp _mbcjistojms

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson