mcabber/src/parsecfg.c
changeset 300 12f919be3da5
parent 279 f5dd437c057b
parent 297 9bdfef4f4735
child 333 db5bebe96c89
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;