#include <kernwin.hpp> // For get_screen_ea() definition #include <bytes.hpp> ea_t addr = get_screen_ea(); // Cycle through 20 bytes from the cursor position // printing a message if the byte is a head byte. for (int i = 0; i < 20; i++) { flags_t flags = getFlags(addr); if (isHead(flags)) msg("%a is a head (flags = %08x).\n", addr, flags); addr++; }