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 <mbctype.h>
    int _setmbcp( int codepage );

Description:
    The _setmbcp function sets the current code page number.

Returns:
    The _setmbcp function returns zero if the code page is set successfully.
     If an invalid code page value is supplied for codepage, the function
    returns -1 and the code page setting is unchanged.


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

    void main()
      {
        printf( "%d\n", _setmbcp( 932 ) );
        printf( "%d\n", _getmbcp() );
      }

    produces the following:

    0
    932

Classification:
    WATCOM

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

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

See Also: _getmbcp _mbbtombc

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