Advertisement

01.31.2008 at 12:10PM PST, ID: 23127623
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Reading Configuration File using C (not C++)
Tags: Red Hat, Enterprise Linux, 1.4.18
A configuration file consists of sections and entries. Each section is defined inside a "[]", and each entry is delimited by an "=" sign. The value of each entry can be either string or an integer, double, alphanumerical or just an empty string.  Comments start with "#" sign.

The following is a sample of the config file:
## This is a sample config file
[Section 1]
Entry1=123456
Entry2=THIS IS A TEST # This is entry 2

[Section 2]
Entry1=rev 0 # This is entry 1
Entry2=TM 2001-12-44 23:20 Ttl 5

Questions:
1. Are there any libraries available that implement the processing of a config file such as the above, preferably licensed by some open source like LGPL, Apache or BSD.? If yes, what is it or where I can find it?

2. If this is to be a custom implementation, how to develop this is C (and not C++) where the config file is parsed, entries are stored in some structure, then the values are assigned to variables or defaule values.
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: TexanLonghorn
Solution Provided By: Infinity08
Participating Experts: 2
Solution Grade: A
Views: 228
Translate:
Loading Advertisement...
01.31.2008 at 12:16PM PST, ID: 20790555

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:18PM PST, ID: 20790576

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:21PM PST, ID: 20790602

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:22PM PST, ID: 20790608

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:22PM PST, ID: 20790618

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:24PM PST, ID: 20790640

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:25PM PST, ID: 20790647

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:26PM PST, ID: 20790659

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:30PM PST, ID: 20790710

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.31.2008 at 12:32PM PST, ID: 20790724

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.01.2008 at 02:46PM PST, ID: 20801451

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.06.2008 at 06:07AM PST, ID: 20831958

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 07:14AM PST, ID: 20893917

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 07:26AM PST, ID: 20894041

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 02:22AM PST, ID: 20918805

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 02:38AM PST, ID: 20918855

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 02:58AM PST, ID: 20918906

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:07AM PST, ID: 20918941

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:10AM PST, ID: 20918947

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:11AM PST, ID: 20918954

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:19AM PST, ID: 20918987

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:25AM PST, ID: 20919000

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.18.2008 at 03:30AM PST, ID: 20919023

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 11:22AM PST, ID: 20960468

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.22.2008 at 11:58AM PST, ID: 20960843

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
01.31.2008 at 12:16PM PST, ID: 20790555

Rank: Guru

This looks the same as a INI file. If this is a Window development maybe you could use GetPrivateProfileString() and related functions?

http://msdn2.microsoft.com/en-us/library/ms724353(VS.85).aspx
 
01.31.2008 at 12:18PM PST, ID: 20790576

Rank: Guru

 
01.31.2008 at 12:21PM PST, ID: 20790602

Rank: Guru

This appears to be an open source library capable of reading INI files.
http://sourceforge.net/projects/libini

INI Parser Library: An INI file parser that can read, edit and create large INI files. Usable under Microsoft Windows, DOS, Linux, etc
 
01.31.2008 at 12:22PM PST, ID: 20790608

Rank: Sage

Here's a nice library :

        http://ndevilla.free.fr/iniparser/
Accepted Solution
 
01.31.2008 at 12:22PM PST, ID: 20790618

Rank: Sage

 
01.31.2008 at 12:24PM PST, ID: 20790640

Rank: Guru

>> Or this one
*cough* #20790602 :)
Assisted Solution
 
01.31.2008 at 12:25PM PST, ID: 20790647

Rank: Sage

;) I posted both in rapid succession :)
 
01.31.2008 at 12:26PM PST, ID: 20790659

Rank: Guru

>> I posted both in rapid successio
I know, I'm only kidding :)
So bored -- no Q's tonight!
 
01.31.2008 at 12:30PM PST, ID: 20790710

Rank: Sage

I was planning to put them in the same post, but clicked submit too early lol.

I'm not bored ... I'm chasing mice (heard that there are mice in the building) lol
 
01.31.2008 at 12:32PM PST, ID: 20790724

Rank: Guru

Mice? Wow. I'm trying to find a cheap holiday and maybe a new job. No mice though, except the one on my desk.
 
02.01.2008 at 02:46PM PST, ID: 20801451

Rank: Guru

Hi TexanLonghorn. Did these suggestions help you out in anyway or do you need more assistance?

-Rx
 
02.06.2008 at 06:07AM PST, ID: 20831958
Appologies for the late responce. But I haven't had the chance to look into this yet. I can tell that the iniParser seem to be more compatible with my source code. I will download the stand-alone Parser library today and keep you posted on my progress.

Thanks for checking Rx.
 
02.14.2008 at 07:14AM PST, ID: 20893917
I have downloaded and used the iniParser API with source code. However, I noticed couple of issues with the configuration file processing:

1. There is a memory problem with the code. The iniparser_getstring() function does not allocate memory from the string; so after iniparser_freedict() is called, the memory for all of those strings has been freed. A strdup will need to be done on the string to allocate memory for the data structure I am using to store the values, which my program will be reading from the config file.

2. My software is designed to use the same config file for multiple applications (or stubs). Each application has its own section, i.e. [App1], in the config file, and for simplicity purposes I would not like to use different files for different applications. I need to find the exact name of the running application before I use iniParser to locate its config values. Keeping in mind that the application could be running on Linux or Windows O/S. In which case I will need to have another routine to strip the pathname (e.g. c:\dir\app1 or ~/bin/app1) from the application name (e.g. app1) before using iniparser_getsecname() function to locate the desinated section (e.g. [app1]).
 
02.14.2008 at 07:26AM PST, ID: 20894041

Rank: Guru

>> I will need to have another routine to strip the pathname
Q&D function below.

After: sPath == "app1 "
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
#include <string>
 
#ifdef _WIN32
#define PATH_DELIM '\\'
#else
#define PATH_DELIM '/'
#endif
 
int main()
{
	std::string sPath = "c:\\dir\\app1 ";
	std::string::size_type pos = sPath.rfind(PATH_DELIM);
	if(sPath.size() > 1 && pos != std::string::npos) { sPath = sPath.substr(pos + 1); }
 
	return 0;
}
Open in New Window
 
02.18.2008 at 02:22AM PST, ID: 20918805
evilrix, please let me know if it's possible to get the same source code for the pathname stripper in C, instead of C++. If so can you provide it?
 
02.18.2008 at 02:38AM PST, ID: 20918855

Rank: Guru

Try this.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
#include <string.h>
#include <stdio.h>
 
#ifdef _WIN32
#define PATH_DELIM "\\"
#else
#define PATH_DELIM "/"
#endif
 
void strip_path(char * szPath)
{
	char const * curpos = strtok(szPath, PATH_DELIM);
	char const * pos = NULL;
	while(curpos = strtok(NULL, PATH_DELIM)) { pos = curpos; }
	if(pos) { strcpy(szPath, pos); }
}
 
int main()
{
	char szPath1[] = "c:\\dir\\app1 ";
	char szPath2[] = "app1 ";
 
	strip_path(szPath1);
	printf("Path1: %s\n", szPath1);
 
	strip_path(szPath2);
	printf("Path2: %s\n", szPath2);
 
	return 0;
}
Open in New Window
Assisted Solution
 
02.18.2008 at 02:58AM PST, ID: 20918906
Do you believe the following standard function would do the same work as your strip_path() and would work on Windows (_WIN32) and other Unix/Linux like operating systems?
#include <unistd.h>
char * basename (const char *name);
 
02.18.2008 at 03:07AM PST, ID: 20918941

Rank: Guru

The unistd.h header is a Unix only header so no, I don't think it will be x-platform. I cannot find any reference to this function on the MSDN.

http://opengroup.org/onlinepubs/007908799/xsh/unistd.h.html
http://en.wikipedia.org/wiki/Basename

-Rx.
 
02.18.2008 at 03:10AM PST, ID: 20918947

Rank: Guru

>> I cannot find any reference to this function on the MSDN.
Actually, it's a Unix OS program and not a function, right?
 
02.18.2008 at 03:11AM PST, ID: 20918954

Rank: Guru

>> Actually, it's a Unix OS program and not a function, right?
Maybe it's both -- Posix does have a habit of naming functions the same as programs that offer Shell support via that function :) Anyway, no I don't think it'll be x-platform.
 
02.18.2008 at 03:19AM PST, ID: 20918987

Rank: Guru

>> Maybe it's both
I couldn't initially find it as a function on my Linux box but I think I may have mis-typed it, oops! Anyway, found it now :)

Here is the online doc for the function itself.
http://www.opengroup.org/onlinepubs/000095399/functions/basename.html

The header it uses is libgen.h.
http://www.opengroup.org/onlinepubs/007908775/xsh/libgen.h.html

If you are only targetting Unix then this may be a good way to do this, if you are looking to be x-platform you may find split_path() a better choice.

NB. split_path() is not production quality code, I just knocked it up quick so you should test it throughly.

-Rx.
 
02.18.2008 at 03:25AM PST, ID: 20919000
I guess what confused me is the #ifndef declarations at the beginning of the basename() source code. see the following:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
/* Return the basename of a pathname.
   This file is in the public domain. */
 
/*
NAME
	basename -- return pointer to last component of a pathname
 
SYNOPSIS
	char *basename (const char *name)
 
DESCRIPTION
	Given a pointer to a string containing a typical pathname
	(/usr/src/cmd/ls/ls.c for example), returns a pointer to the
	last component of the pathname ("ls.c" in this case).
 
BUGS
	Presumes a UNIX or DOS/Windows style path with UNIX or DOS/Windows 
	style separators.
*/
 
#include "ansidecl.h"
#include "libiberty.h"
#include "safe-ctype.h"
 
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
 
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  defined (__OS2__)
#define HAVE_DOS_BASED_FILE_SYSTEM
#ifndef DIR_SEPARATOR_2 
#define DIR_SEPARATOR_2 '\\'
#endif
#endif
 
/* Define IS_DIR_SEPARATOR.  */
#ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
#else /* DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
	(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
#endif /* DIR_SEPARATOR_2 */
 
char *
basename (name)
     const char *name;
{
  const char *base;
 
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  /* Skip over the disk name in MSDOS pathnames. */
  if (ISALPHA (name[0]) && name[1] == ':') 
    name += 2;
#endif
 
  for (base = name; *name; name++)
    {
      if (IS_DIR_SEPARATOR (*name))
	{
	  base = name + 1;
	}
    }
  return (char *) base;
}
Open in New Window
 
02.18.2008 at 03:30AM PST, ID: 20919023

Rank: Guru

>> I guess what confused me is the #ifndef declarations at the beginning of the basename() source code.
Well, it's possible this code can be built to run on a Windows platform and if you're happy to build it as part of your project then that would probably work; however,

(a) as far as I can tell this is not a standard fucntion offered in Windows (I couldn't find anything on the MSDN -- although it's not the easiest thing to search)

(b) since it offers many other functions beyond basename() I suspect distributing it might be over-kill.

(c) You also have to check the licencing for it, if it's (for example) GPL you'd have to make your code also GPL (as far as I understand the GPL licence).

-Rx.
Assisted Solution
 
02.22.2008 at 11:22AM PST, ID: 20960468
Please let me know if you can assist in getting rid of the following warning messages generated during compilation as a result of simple assignments such as

char * s = iniparser_getstring(ini, "[section1]:[entery1]", NULL);

when using the iniParser library:

configuration.c: In function `load_config_lib':
configuration.c:339: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:340: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:341: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:342: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:346: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:347: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
configuration.c:348: warning: passing arg 3 of `iniparser_getint' makes integer from pointer without a cast
 
02.22.2008 at 11:58AM PST, ID: 20960843

Rank: Guru

>> Please let me know if you can assist in getting rid of the following warning messages generated during compilation as a result of simple assignments such as
That should really be opened as a new Q TL. I think the original Q has been answered, no?
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628