comparison mcabber/src/parsecfg.c @ 297:9bdfef4f4735

Add comment for the cfg_file() function
author Mikael Berthe <mikael@lilotux.net>
date Sat, 09 Jul 2005 23:20:36 +0100
parents f5dd437c057b
children 12f919be3da5
comparison
equal deleted inserted replaced
296:d31a31bd267d 297:9bdfef4f4735
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;