setmbcp.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 32 行

GML
32
字号
.func _setmbcp
#include <mbctype.h>
int _setmbcp( int codepage );
.funcend
.desc begin
The &func function sets the current code page number.
.desc end
.return begin
The &func function returns zero if the code page is set successfully.
If an invalid code page value is supplied for
.arg codepage,
the function returns -1 and the code page setting is unchanged.
.return end
.see begin
.im seeismbb &function.
.see end
.exmp begin
#include <stdio.h>
#include <mbctype.h>

void main()
  {
    printf( "%d\n", _setmbcp( 932 ) );
    printf( "%d\n", _getmbcp() );
  }
.exmp output
0
932
.exmp end
.class WATCOM
.system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?