Hello, tell me please, whether there in a C language modules for reading configuration files?
I mean, that in Windows used *.ini files, and development environments (such as Visual Studio, Borland Builder) have a module, for example IniFiles.hpp - for working with *.ini files.
example;
But this is a C++. And for the *.ini.
Is there a configuration file for the C? - vit FreeBSD is written entirely in C, and the whole tune with the conf files.
Need to receive data in a C program with a file type, such as
I mean, that in Windows used *.ini files, and development environments (such as Visual Studio, Borland Builder) have a module, for example IniFiles.hpp - for working with *.ini files.
example;
Code:
#include <IniFiles.hpp>
...
TIniFile *options = new TIniFile("c:\\sys.ini");
init left = options->ReadInteger("Position", "Left", 250);
int top = options->ReadInteger("Position", "Top", 200);
delete options;
Is there a configuration file for the C? - vit FreeBSD is written entirely in C, and the whole tune with the conf files.
Need to receive data in a C program with a file type, such as
Code:
# comment...
# comment...
variable1 = "string value" # comment...
variable2 = 10
variable3 = 3.5 # comment...
variable4 = "ru_RU" # comment...
variable5 = "opt_${variable3}_${variable4 }"