21 lines
349 B
C
21 lines
349 B
C
/*
|
|
* FUCK....lex overwrote this :-(
|
|
* (C)2005, Dan Ponte...again.
|
|
*/
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <phoned.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
struct conf cf;
|
|
void read_config(void)
|
|
{
|
|
FILE* con;
|
|
con = fopen(cf.cfile, "r");
|
|
if(!con) {
|
|
perror("error opening config file");
|
|
exit(-1);
|
|
}
|
|
parse(&con);
|
|
fclose(con);
|
|
}
|