#include <kernwin.hpp> ea_t saddr, eaddr; // Get the address range selected, or return false if // there was no selection int selected = read_selection(&saddr, &eaddr); if (selected) msg("Selected range: %a -> %a\n", saddr, eaddr); else msg("No selection.\n");