getmbcp.gml

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

GML
31
字号
.func _getmbcp
#include <mbctype.h>
int _getmbcp( void );
.funcend
.desc begin
The &func function returns the current multibyte code page number.
.desc end
.return begin
The &func function returns the current multibyte code page.
A return value of zero indicates that a single byte code page is in
use.
.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 + -
显示快捷键?