#include <kernwin.hpp> // For askstr() definition #include <search.hpp> char *s = askstr(0, "", "String to search for", NULL); // Find the first occurrence of the string ea_t foundAt = find_text(inf.minEA, 0, 0, s, SEARCH_DOWN); while (foundAt != BADADDR) msg("%s was found at %a\n", s, foundAt);