misc.h

来自「Unix下的MUD客户端程序」· C头文件 代码 · 共 29 行

H
29
字号
void error (const char *fmt, ...) __attribute__((format(printf,1,2))) __attribute__((noreturn));unsigned hash_str( char *key);int countChar(const char *s, int c);int longestLine (const char *s);const char *one_argument (const char *argument, char *buf, bool smash_case);void report(const char *fmt, ...) __attribute__((format(printf,1,2)));;const char * versionToString(int version);// Takes an ansi code, outputs color changesclass ColorConverter {public:    ColorConverter();    int convert(const byte *s, int size);    const char *convertString(const char *s);    bool checkReportStatus() {        if (fReport) {            fReport = true;            return true;        } else            return false;    }            private:	bool fBold, fReport;	int last_fg, last_bg;};

⌨️ 快捷键说明

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