#include <kernwin.hpp> // For get_screen_ea() and askstr() #include <name.hpp> uval_t value; ea_t addr = get_screen_ea(); // Ask the user for a name char *name = askstr(HIST_IDENT, "start", "Please enter a name"); // Get the value of that name, relative to addr int type = get_name_value(addr, name, &value); // The type will correspond to one of the NT_ values defined in name.hpp. // Value will be FFFFFFF4 for the first local variable or 8 for the first argument to a // function. It could also be the linear address of the strcpy() definition for example. msg("Type: %d, Value: %a\n", type, value);