Skip to content
Snippets Groups Projects
call_parser.c 680 B
Newer Older
  • Learn to ignore specific revisions
  • 数学の武士's avatar
    数学の武士 committed
    #include "call_parser.h"
    #include <stdio.h>
    #include "ISO_Fortran_binding.h"
    
    int run(const char* filename)
    {
        return runCXX(filename);
    }
    
    int get_int(const char* name, int* value)
    {
        return get_intCXX(name, value);
    }
    
    int get_float(const char* name, float* value)
    {
        return get_floatCXX(name, value);
    }
    
    int get_double(const char* name, double* value)
    {
        return get_doubleCXX(name, value);
    }
    
    
    int get_char_c(const char* name, char* value) 
    
    数学の武士's avatar
    数学の武士 committed
    {
        return get_charCXX(name, value);
    }
    
    void get_char_len(const char* name, int *len) 
    {
        *len =  get_char_lenCXX(name);
    }
    
    // int get_bool(const char* name, bool* value) 
    // {
    //     return get_valueCXX(name, value);
    // }