/* used by C and fortran callable_wgrib2 API */

int wgrib2(int argc, const char **argv);
int wgrib2a(const char *arg1, ...);

size_t wgrib2_get_mem_buffer_size(int n);
int wgrib2_get_mem_buffer(int n, size_t size, unsigned char *my_buffer);
int wgrib2_set_mem_buffer(int n, size_t size, unsigned char *my_buffer);

size_t wgrib2_get_reg_size(int reg);
int wgrib2_get_reg_data(float *data, size_t size, int reg);
int wgrib2_set_reg(float *data, size_t size, int reg);

