console.c
来自「针对华清远见的FS9200(其内核为at91rm9200)的一个测试程序」· C语言 代码 · 共 26 行
C
26 行
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
//====================================================================
void puts(char *pt)
{
while(*pt)
putch(*pt++);
}
//If you don't use vsprintf(), the code size is reduced very much.
typedef int *__va_list[1];
int vsprintf(char * /*s*/, const char * /*format*/, __va_list /*arg*/);
void printf(char *fmt,...)
{
va_list ap;
char string[256];
va_start(ap,fmt);
vsprintf(string,fmt,ap);
puts(string);
va_end(ap);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?