#include <kernwin.hpp> // For askstr and get_screen_ea #include <name.hpp> // Get the cursor address ea_t addr = get_screen_ea(); // Ask the user for a string (see kernwin.hpp), which will be the name we search for. char *name = askstr(HIST_IDENT, // History identifier "start", // Default value "Please enter a name"); // Prompt // Display the address that the name represents. You will get FFFFFFFF for stack variables // and nonexistent names. msg("Address: %a\n", get_name_ea(addr, name));