Revision 8e0afb75 src/config.c

View differences:

src/config.c
99 99

  
100 100
  return 1;
101 101
}
102

  
103
int config_value_double(const struct tag *cfg_values, const char *value, double *res)
104
{
105
  const char *str_res;
106

  
107
  str_res = config_value_str(cfg_values, value);
108
  if (str_res == NULL) {
109
    return 0;
110
  }
111

  
112
  *res = strtod(str_res, NULL);
113

  
114
  return 1;
115
}

Also available in: Unified diff