示例#1
0
文件: libconfig.c 项目: 274914765/C
int config_setting_lookup_int64 (const config_setting_t * setting, const char *name, long long *value)
{
    config_setting_t *member = config_setting_get_member (setting, name);
    if (!member)
        return (CONFIG_FALSE);

    return (__config_setting_get_int64 (member, value));
}
示例#2
0
文件: libconfig.c 项目: 274914765/C
int config_lookup_int64 (const config_t * config, const char *path, long long *value)
{
    const config_setting_t *s = config_lookup (config, path);
    if (!s)
        return (CONFIG_FALSE);

    return (__config_setting_get_int64 (s, value));
}
示例#3
0
long long config_setting_get_int64(const config_setting_t *setting)
{
  long long value = 0;
  __config_setting_get_int64(setting, &value);
  return(value);
}