#include <segment.hpp> // For segment functions #include <bytes.hpp> // Loop through every segment for (int i = 0; i < get_segm_qty(); i++) { segment_t *seg = getnseg(i); // Look for any unexplored bytes in this segment for (ea_t a = seg->startEA; a < seg->endEA; a++) { flags_t flags = getFlags(a); if (isUnknown(flags)) msg("Unknown bytes at %a in segment: %s.\n", a, get_segm_name(seg)); } }