📄 cprintf.gml
字号:
.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -