btowc.gml

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

GML
46
字号
.func btowc
#include <wchar.h>
wint_t btowc( int c );
.ixfunc2 '&Wide' &func
.funcend
.*
.desc begin
The &func function determines whether
.arg c
is a valid single-byte character in the initial shift state.
.desc end
.*
.return begin
The &func function returns
.mono WEOF
if
.arg c
has the value
.mono EOF
or if
.arg (unsigned char)c
does not constitute a valid single-byte character in the initial
shift state. Otherwise, &func returns the wide character representation of
that character. 
.return end
.*
.see begin
.im seembc &function.
.see end
.*
.exmp begin
#include <stdio.h>
#include <wchar.h>
.exmp break
void main( void )
{
    printf( "EOF is %sa valid single-byte character\n",
        btowc( EOF ) == WEOF ? "not " : "" );
}
.exmp output
EOF is not a valid single-byte character
.exmp end
.*
.class ANSI
.system

⌨️ 快捷键说明

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