-
Notifications
You must be signed in to change notification settings - Fork 22
/
par.h
27 lines (18 loc) · 789 Bytes
/
par.h
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
#ifndef par_h
#define par_h
void par_open(char *filename);
void par_cmdline(int argc, char *argv[]);
int par_exist(char *block, char *name);
char *par_gets(char *block, char *name);
int par_geti(char *block, char *name);
double par_getd(char *block, char *name);
char *par_gets_def(char *block, char *name, char *def);
int par_geti_def(char *block, char *name, int def);
double par_getd_def(char *block, char *name, double def);
void par_sets(char *block, char *name, char *sval, char *comment);
void par_seti(char *block, char *name, char *fmt, int ival, char *comment);
void par_setd(char *block, char *name, char *fmt, double dval, char *comment);
void par_close(void);
// max line length readable by the input file parser
#define MAXLEN 512
#endif