| 1234567891011121314151617181920212223242526272829303132333435 | #pragma once#include <libc/sys/types.h>#include <stdarg.h>// 字体颜色的宏定义#define COLOR_WHITE 0x00ffffff  //白#define COLOR_BLACK 0x00000000  //黑#define COLOR_RED 0x00ff0000    //红#define COLOR_ORANGE 0x00ff8000 //橙#define COLOR_YELLOW 0x00ffff00 //黄#define COLOR_GREEN 0x0000ff00  //绿#define COLOR_BLUE 0x000000ff   //蓝#define COLOR_INDIGO 0x0000ffff //靛#define COLOR_PURPLE 0x008000ff //紫#define SEEK_SET 0 /* Seek relative to start-of-file */#define SEEK_CUR 1 /* Seek relative to current position */#define SEEK_END 2 /* Seek relative to end-of-file */#define SEEK_MAX 3/** * @brief 往屏幕上输出字符串 * * @param str 字符串指针 * @param front_color 前景色 * @param bg_color 背景色 * @return int64_t */int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);int printf(const char *fmt, ...);int sprintf(char *buf, const char *fmt, ...);int vsprintf(char *buf, const char *fmt, va_list args);
 |