1# stdio.h
2
3## 简介:
4
5    向标准输入输出里操作
6## 函数列表:
7
8    ``int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color)``
9
10        输出字符串(带有前景色,背景色)
11
12    ``int printf(const char *fmt, ...)``
13
14        就是正常的 ``printf``
15
16    ``int sprintf(char *buf,const char *fmt,...)```
17
18        就是正常的 ``sprintf``
19
20    ``int vsprintf(char *buf,const char *fmt,va_list args)``
21
22        格式化,不建议调用,请用 printf 或 sprintf 替代。
23## 宏定义
24
25    ### 字体颜色的宏定义
26
27        ``#define COLOR_WHITE 0x00ffffff  //白``
28
29        ``#define COLOR_BLACK 0x00000000  //黑``
30
31        ``#define COLOR_RED 0x00ff0000    //红``
32
33        ``#define COLOR_ORANGE 0x00ff8000 //橙``
34
35        ``#define COLOR_YELLOW 0x00ffff00 //黄``
36
37        ``#define COLOR_GREEN 0x0000ff00  //绿``
38
39        ``#define COLOR_BLUE 0x000000ff   //蓝``
40
41        ``#define COLOR_INDIGO 0x0000ffff //靛``
42
43        ``#define COLOR_PURPLE 0x008000ff //紫``
44    ### 无需使用
45
46        ``#define SEEK_SET 0 /* Seek relative to start-of-file */``
47
48        ``#define SEEK_CUR 1 /* Seek relative to current position */``
49
50        ``#define SEEK_END 2 /* Seek relative to end-of-file */``
51
52        ``#define SEEK_MAX 3``