libmawk_get_var − returns a pointer to a mawk variable
#include <libmawk.h>
CELL *libmawk_get_var(mawk_state_t *m, const char *vname);
The libmawk_get_var() function returns a pointer to a mawk cell that represents the global variable with name passed in vname in the given context. The returned CELL should never be free’d or destroyed. Function libmawk_print_cell may be used for converting the cell to string. The caller should not change the type of cell but is free to change the value.
Argument m is a libmawk context previously returned by libmawk_initialize() or libmawk_initialize_stage3().
libmawk_initialize_stage(3libmawk), libmawk_initialize(3libmawk), libmawk_call_function(3libmawk), libmawk_print_cell(3libmawk).