MCPcopy Create free account
hub / github.com/CalcProgrammer1/KeyboardVisualizer / parse_settings_file

Function parse_settings_file

KeyboardVisualizerQT/main.cpp:241–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void parse_settings_file(char * filename)
242{
243 std::ifstream infile;
244
245 //Open settings file
246 infile.open(filename);
247
248 if (infile.good())
249 {
250 for (std::string line; std::getline(infile, line); )
251 {
252 if (line == "")
253 {
254 continue;
255 }
256 if ((line[0] != ';') && (line[0] != '#') && (line[0] != '/'))
257 {
258 char * argument;
259 char * value;
260
261 value = (char *)line.c_str();
262
263 //argument = strtok_r(value, "=", &value);
264
265 parse_argument_string(argument, value);
266 }
267 }
268 }
269}
270
271int main(int argc, char *argv[])
272{

Callers

nothing calls this directly

Calls 1

parse_argument_stringFunction · 0.85

Tested by

no test coverage detected