Use an INI file in C on Linux

后端 未结 7 1577
不思量自难忘°
不思量自难忘° 2020-12-14 17:34

Is there a standard way of reading a kind of configuration like INI files for Linux using C?

I am working on a Linux based handheld and writing code in C.

Ot

7条回答
  •  感情败类
    2020-12-14 18:01

    If you need a fast and small code just for reading config files I suggest the inih

    It loads the config file content just once, parse the content and calls a callback function for each key/value pair.

    Really small. It can be used on embedded systems too.

提交回复
热议问题