#include <kernwin.hpp> // For get_screen_ea() definition #include <bytes.hpp> char string[MAXSTR]; flags_t flags = getFlags(get_screen_ea()); // Only get a string if we're at actual data. if (isData(flags)) { // Get a string from the binary get_many_bytes(get_screen_ea(), string, sizeof(string) - 2); // NULL terminate the string, if not already terminated in the binary // (so strlen doesn't barf) string[MAXSTR-1] = '\0'; msg("String length: %d\n", strlen(string)); }