make default for ini_get_double a double
This commit is contained in:
parent
eb5e8fb537
commit
66a5845ecc
@ -112,7 +112,7 @@ int ini_get_int(char *section, char *key, int def)
|
|||||||
return atoi(value);
|
return atoi(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
double ini_get_double(char *section, char *key, int def)
|
double ini_get_double(char *section, char *key, double def)
|
||||||
{
|
{
|
||||||
char *value = get_value(section, key);
|
char *value = get_value(section, key);
|
||||||
if (value == NULL)
|
if (value == NULL)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
int load_ini_file(FILE *);
|
int load_ini_file(FILE *);
|
||||||
char *ini_get_string(char *section, char *key, const char *def);
|
char *ini_get_string(char *section, char *key, const char *def);
|
||||||
int ini_get_int(char *section, char *key, int def);
|
int ini_get_int(char *section, char *key, int def);
|
||||||
double ini_get_double(char *section, char *key, int def);
|
double ini_get_double(char *section, char *key, double def);
|
||||||
int ini_get_bool(char *section, char *key, int def);
|
int ini_get_bool(char *section, char *key, int def);
|
||||||
void free_ini(void);
|
void free_ini(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user