Exemple #1
0
int64_t _conv_cJSON_float(cJSON *json)
{
    int64_t conv_floatstr(char *);
    char tmp[4096];
    if ( json != 0 )
    {
        copy_cJSON(tmp,json);
        return(conv_floatstr(tmp));
    }
    return(0);
}
Exemple #2
0
int64_t _conv_cJSON_float(cJSON *json)
{
    int64_t conv_floatstr(char *);
    struct destbuf tmp;
    if ( json != 0 )
    {
        copy_cJSON(&tmp,json);
        return(conv_floatstr(tmp.buf));
    }
    return(0);
}