first commit
This commit is contained in:
22
CS4210/Project 3/common/config_parser/parser.h
Normal file
22
CS4210/Project 3/common/config_parser/parser.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef _PARSER_H_
|
||||
#define _PARSER_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct SCONFIGFILE {
|
||||
char currentParamter[80];
|
||||
char currentValue[80];
|
||||
FILE* file;
|
||||
} ConfigFile;
|
||||
|
||||
/*
|
||||
* Load a file
|
||||
*/
|
||||
ConfigFile* loadFile(char* fileName);
|
||||
void releaseConfig(ConfigFile**);
|
||||
|
||||
int nextSet(ConfigFile*);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user