equal
deleted
inserted
replaced
12 |
12 |
13 const |
13 const |
14 char *CONFIG_OPTIONS[] = { |
14 char *CONFIG_OPTIONS[] = { |
15 "NICK", "PASSWORD", "SERVER", "PORT", |
15 "NICK", "PASSWORD", "SERVER", "PORT", |
16 "CHANNEL", "TOPIC", |
16 "CHANNEL", "TOPIC", |
17 NULL |
|
18 }; |
17 }; |
19 |
18 |
20 int config (UC * uc, char *fname) |
19 int config (UC * uc, char *fname) |
21 { |
20 { |
22 FILE *f; |
21 FILE *f; |
23 char buffer[513]; |
22 char buffer[513]; |
24 static char **line; |
23 char **line; |
25 char *token; |
24 char *token; |
26 char *value; |
25 char *value; |
27 int i = 0; |
26 int i = 0; |
28 |
27 |
29 if ((f = fopen (fname, "r")) == NULL) |
28 if ((f = fopen (fname, "r")) == NULL) |