Initial revision

This commit is contained in:
cvs
2000-02-07 10:38:55 +00:00
commit fdc6b051c9
846 changed files with 230218 additions and 0 deletions

32
ifile.h Normal file
View File

@ -0,0 +1,32 @@
/*--------------------------------------------------------------------------
iFile: A simple tool for configuration management. Reads a list
of name value pairs from a file and allows to seach this list
for configuration options.
Mark Koennecke, October 1996
copyright: see Implementation file
---------------------------------------------------------------------------*/
#ifndef MKIFILE
#define MKIFILE
#include <stdio.h>
typedef struct __IFileE
{
char *name;
char *value;
struct __IFileE *pNext;
} IPair;
IPair *IFReadConfigFile(FILE *fp);
char *IFindOption(IPair *pList,char *name);
/* returns a value for a name
*/
IPair *IFAddOption(IPair *pList,char *name, char *value);
int IFSaveOptions(IPair *pList,FILE *fp);
void IFDeleteOptions(IPair *pList);
extern IPair *pSICSOptions;
#endif