#include <kernwin.hpp> // For get_screen_ea() definition
#include <segment.hpp>
// Get the address of the user's cursor position see section 5.2.1 for get_screen_ea()
ea_t addr = get_screen_ea();
// Get the segment that owns that address
area_t *area = segs.get_area(addr);
msg("Segment holding %a starts at %a, ends at %a\n", addr, area->startEA, area->endEA);







