📄 printf.c
字号:
/* - PRINTF.C -
The ANSI "printf" function.
$Revision: 1.3 $
Copyright 1986 - 1999 IAR Systems. All rights reserved.
*/
#include "stdarg.h"
#include "stdio.h"
#include "icclbutl.h"
static void put_one_char(char c, void *dummy)
{
putchar (c);
(void)dummy; /* Warning on this line OK (Optimized Away) */
}
int printf(const char *format, ...) /* Our main entry */
{
va_list ap;
int nr_of_chars;
va_start(ap, format); /* Variable argument begin */
nr_of_chars = _formatted_write(format, put_one_char, (void *) 0, ap);
va_end(ap); /* Variable argument end */
return nr_of_chars; /* According to ANSI */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -