comparison mcabber/src/parsecfg.c @ 300:12f919be3da5

Merge heads
author Mikael Berthe <mikael@lilotux.net>
date Sun, 10 Jul 2005 22:36:55 +0100
parents f5dd437c057b 9bdfef4f4735
children db5bebe96c89
comparison
equal deleted inserted replaced
299:8af283462e63 300:12f919be3da5
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;