config.cpp

changeset 99
920d51fec412
parent 78
c190fe218506
child 104
6e29bb0e83c5
equal deleted inserted replaced
98:5dcc551f260a 99:920d51fec412
63 }; 63 };
64 64
65 // ============================================================================= 65 // =============================================================================
66 // Load the configuration from file 66 // Load the configuration from file
67 bool config::load () { 67 bool config::load () {
68 printf ("config::load: loading configuration file.\n");
69
68 // Locale must be disabled for atof 70 // Locale must be disabled for atof
69 setlocale (LC_NUMERIC, "C"); 71 setlocale (LC_NUMERIC, "C");
70 72
71 FILE* fp = fopen (filepath().chars(), "r"); 73 FILE* fp = fopen (filepath().chars(), "r");
72 char linedata[MAX_INI_LINE]; 74 char linedata[MAX_INI_LINE];

mercurial