-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadCfgFile.h
More file actions
46 lines (43 loc) · 1.02 KB
/
ReadCfgFile.h
File metadata and controls
46 lines (43 loc) · 1.02 KB
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
//============================================================================
//
// MODULE NAME: ReadConfigFile.h
//
// MODULE DESCRIPTION:
//
//
//
//
// SPECIAL CONSIDERATIONS:
//
//
//****************************************************************************
//
// REVISION HISTORY:
//
// DATE DESIGNER REASON
// -------- ------------ --------------------------------------
// 09/05/2011 JiMeixiang Original
//
//============================================================================
#ifndef _ReadCfgFile_H
#define _ReadCfgFile_H
#define MAX_LINE_LEN 512
#define MAX_ITEM_LEN 32
#define MAX_ONEL_ITEM 5
#define MAX_LINE 5
typedef struct {
char content[MAX_ITEM_LEN];
}_ITEM;
typedef struct {
// int line;
_ITEM item[MAX_ONEL_ITEM];
}_LINE_ITEMS;
#ifndef MIN
#define MIN(a, b) ((a) < (b)? (a): (b))
#endif
#ifndef MAX
#define MAX(a, b) ((a) > (b)? (a): (b))
#endif
extern int readCfgItems(char* pfilename);
extern _LINE_ITEMS* itemsptr();
#endif