⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fmtout.h

📁 The main purpose of this project is to add a new scheduling algorithm to GeekOS and to implement a s
💻 H
字号:
/* * Generalized support for printf()-style formatted output * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.1 $ * * This is free software.  You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". */#ifndef OUTPUT_H#define OUTPUT_H#include <stdarg.h>/* * An output sink for Format_Output(). * Useful for emitting formatted output to a function * or a buffer. */struct Output_Sink {    /*     * Emit a single character of output.     * This is called for all output characters,     * in order.     */    void (*Emit)(struct Output_Sink *o, int ch);    /*     * Finish the formatted output. Called after all characters     * have been emitted.     */    void (*Finish)(struct Output_Sink *o);};int Format_Output(struct Output_Sink *q, const char *format, va_list ap);#endif /* OUTPUT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -