#include <kernwin.hpp> // For get_screen_ea() definition
#include <name.hpp>
char buf[MAXSTR];
// Get the nicely formatted name/address of the current cursor position.
// No colour codes will be included.
get_nice_colored_name(get_screen_ea(), buf, sizeof(buf) - 1, GNCN_NOCOLOR);
msg("Name at cursor position: %s\n", buf);







