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

📄 fortune.h

📁 CFL是Unix下的通用抽象库,以简化Unix下的系统软件开发,CFL库中包含几个分组的函数和宏
💻 H
字号:
/* ----------------------------------------------------------------------------   CFL - A C Foundation Library   Copyright (C) 1994-2003  Mark A Lindner   This file is part of CFL.      This library is free software; you can redistribute it and/or   modify it under the terms of the GNU Library General Public   License as published by the Free Software Foundation; either   version 2 of the License, or (at your option) any later version.      This library is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Library General Public License for more details.      You should have received a copy of the GNU Library General Public   License along with this library; if not, write to the Free   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   ----------------------------------------------------------------------------*/      #ifndef __cfl_fortune_h#define __cfl_fortune_h#include <cfl/defs.h>#include <stdio.h>#ifdef __cplusplusextern "C" {#endif /* __cplusplus */typedef struct c_fortune_db_t  {  FILE *data;  FILE *index;  int count;  off_t filelen;  } c_fortune_db_t;extern c_fortune_db_t *C_fortune_opendb(const char *basename);extern c_bool_t C_fortune_closedb(c_fortune_db_t *db);extern c_bool_t C_fortune_indexdb(const char *basename);extern const char *C_fortune_select(c_fortune_db_t *db);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __cfl_fortune_h *//* end of library header */

⌨️ 快捷键说明

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