cprintf.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 45 行
GML
45 行
.func cprintf
#include <conio.h>
int cprintf( const char *format, ... );
.ixfunc2 '&KbIo' &func
.funcend
.desc begin
The &func function writes output directly to the console under control
of the argument
.arg format.
The
.kw putch
function is used to output characters to the console.
The
.arg format
string is described under the description of the
.kw printf
function.
.desc end
.return begin
The &func function returns the number of characters written.
.return end
.see begin
.im seeprtf cprintf
.see end
.exmp begin
#include <conio.h>
void main()
{
char *weekday, *month;
int day, year;
.exmp break
weekday = "Saturday";
month = "April";
day = 18;
year = 1987;
cprintf( "%s, %s %d, %d\n",
weekday, month, day, year );
}
.exmp output
Saturday, April 18, 1987
.exmp end
.class WATCOM
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?