By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,906 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,906 IT Pros & Developers. It's quick & easy.

Using libconfig with Groups

P: 1
Hello,

I am trying to figure out how to use libconfig for a C program. Would someone be willing to post an example program on who to read a group with multiple items?

For example, I am trying to figure out how to read the following:
extension_list = (
{ ext = "wmv";
header = "\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9";
footer = "END";
max_length = 10240; },
{ ext = "zip";
header = "\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9";
footer = "END";
max_length = 10240; }

Please remember I am a beginner C programmer when posting a reply.

Thank you,
CM
May 24 '07
Share this Question
Share on Google+
1 Reply


P: 1
hi,

Please check this site, I hope will be helpful for you.

http://www.hyperrealm.com/libconfig/libconfig_manual.html
http://www.hyperrealm.com/libconfig/libconfig_manual.html#The-C-API

It describes how to use parse a file, using libconfig in C style.
Sorry for the late reply. because today only I joined this community.

Thanks & Regards,

Anju. S

Hello,

I am trying to figure out how to use libconfig for a C program. Would someone be willing to post an example program on who to read a group with multiple items?

For example, I am trying to figure out how to read the following:
extension_list = (
{ ext = "wmv";
header = "\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9";
footer = "END";
max_length = 10240; },
{ ext = "zip";
header = "\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9";
footer = "END";
max_length = 10240; }

Please remember I am a beginner C programmer when posting a reply.

Thank you,
CM
Nov 21 '07

Post your reply

Sign in to post your reply or Sign up for a free account.