equal
deleted
inserted
replaced
6 #include <glib.h> |
6 #include <glib.h> |
7 |
7 |
8 #include "settings.h" |
8 #include "settings.h" |
9 #include "utils.h" |
9 #include "utils.h" |
10 |
10 |
|
11 // cfg_file(filename) |
|
12 // Read and parse config file "filename". If filename is NULL, |
|
13 // try to open the configuration file at the default locations. |
|
14 // |
|
15 // This function comes from Cabber, and has been slightly modified. |
11 int cfg_file(char *filename) |
16 int cfg_file(char *filename) |
12 { |
17 { |
13 FILE *fp; |
18 FILE *fp; |
14 char *buf; |
19 char *buf; |
15 char *line; |
20 char *line; |