首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > httpd.conf-like Apache文件解析

httpd.conf-like Apache文件解析

  • 资源大小:3.17 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

summary I made a project used this type of configuration file which is apache httpd.conf-like,maybe it have been in apache project yet,but im glad share with you and hope to help you. Suppose your project used a configure file named "xxx.conf",its content structure shows like: # max timeouttimeout = 20 language = en # default language Then in your source file you can read configures like this when used this library CONF_ITEM* ctx = init();read_config(ctx,"xxx.conf");char* language = get_config(ctx,"language");...int timeout = atoi(get_config(ctx,"timeout"));... Is it simple? Welcome your feedback and bug reports!!

文 件 列 表

a.conf
config_error.h
config_parser.c
config_parser.h
test.c
VIP VIP
0.177821s