使用ini文件在Linux下C

编程入门 行业动态 更新时间:2024-10-28 10:30:03
本文介绍了使用ini文件在Linux下C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有阅读一种像使用C Linux的INI文件配置的任何标准的方式?我工作的一个基于Linux的手持和写C code。

Is there any standard way of reading a kind of configuration like ini files for linux using c? I am working on a Linux based hand held and writing code in c.

另外,我想知道的任何替代方案。

Otherwise, I shall like to know about any alternatives.

最后更新:

我已经探索了,甚至用LibConfig。但占用高,我的使用过于简单。因此,减少占地面积,我都推出了自己的实现。实施是不是太普通,其实相当加之截至目前。配置文件在启动所述应用程序的时间解析一次,并设置为一些全局变量

I have explored and even used LibConfig. But the footprint is high and my usage is too simple. So, to reduce the footprint, I have rolled out my own implementation. The implementation is not too generic, in fact quite coupled as of now. The config file is parsed once at the time of starting the application and set to some global variables.

推荐答案

尝试libconfig: www.hyperrealm/libconfig /

try libconfig: www.hyperrealm/libconfig/

更多推荐

使用ini文件在Linux下C

本文发布于:2023-10-08 23:52:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1474116.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   ini   Linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!