This is a set of functions which control the read-in of configuration data. 更多...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include "../include/var_struc.h"
函数 | |
static void | config_check (void) |
This function check whether the configuration data is reasonable and set the default. 更多... | |
static int | config_read (FILE *fp) |
This function read the configuration data file, and store the configuration data in the array "config". 更多... | |
void | configurate (const char *add_in) |
This function controls configuration data reading and validation. 更多... | |
void | config_write (const char *add_out, const double *cpu_time, const char *name) |
This is a set of functions which control the read-in of configuration data.
在文件 config_handle.c 中定义.
|
static |
This function check whether the configuration data is reasonable and set the default.
在文件 config_handle.c 第 38 行定义.
|
static |
This function read the configuration data file, and store the configuration data in the array "config".
[in] | fp | The pointer to the configuration data file. |
1 | Success to read in configuration data file. |
0 | Failure to read in configuration data file. |
在文件 config_handle.c 第 145 行定义.
void config_write | ( | const char * | add_out, |
const double * | cpu_time, | ||
const char * | name | ||
) |
void configurate | ( | const char * | add_in | ) |
This function controls configuration data reading and validation.
The parameters in the configuration data file refer to 'doc/config.csv'.
[in] | add_in | Adress of the initial data folder of the test example. |
在文件 config_handle.c 第 191 行定义.