| 1 |
#include <stdio.h> |
| 2 |
|
| 3 |
int debug; |
| 4 |
|
| 5 |
int opencfgfile(const char *cfgfile, FILE **fd) |
| 6 |
{ |
| 7 |
if (cfgfile[0] != '\0') { |
| 8 |
|
| 9 |
if ((*fd = fopen(cfgfile, "r")) != NULL) { |
| 10 |
if (debug) |
| 11 |
printf("Config file: --config\n"); |
| 12 |
} |
| 13 |
|
| 14 |
} |
| 15 |
|
| 16 |
return 2; |
| 17 |
} |