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

📄 lcfg_static.h

📁 The configuration file reading samples for ARM project development. Including the sample .conf files
💻 H
字号:
/* * liblcfg - lightweight configuration file library * Copyright (C) 2007  Paul Baecher *  *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. *   *  This program 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 General Public License for more details. * *  You should have received a copy of the GNU General Public License along *  with this program; if not, write to the Free Software Foundation, Inc., *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * *    $Id: lcfg.h 995 2007-05-07 01:49:42Z dp $ *  */#ifndef LCFG_H#define LCFG_Hstruct lcfg;enum lcfg_status { lcfg_status_ok, lcfg_status_error };typedef enum lcfg_status (*lcfg_visitor_function)(const char *key, void *data, size_t size, void *user_data);/* open a new config file */struct lcfg *        lcfg_new(const char *filename);/* parse config into memory */enum lcfg_status     lcfg_parse(struct lcfg *);/* visit all configuration elements */enum lcfg_status     lcfg_accept(struct lcfg *, lcfg_visitor_function, void *);/* access a value by path */enum lcfg_status     lcfg_value_get(struct lcfg *, const char *, void **, size_t *);/* return the last error message */const char *         lcfg_error_get(struct lcfg *);/* set error */void                 lcfg_error_set(struct lcfg *, const char *fmt, ...);/* destroy lcfg context */void                 lcfg_delete(struct lcfg *);#endif

⌨️ 快捷键说明

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