#include <kernwin.hpp> // For get_screen_ea() definition
#include <funcs.hpp>
// Get the address of the user's cursor
ea_t addr = get_screen_ea();
func_t *func = get_func(addr);
if (func != NULL)
{
// Buffer where the function name will be stored
char funcName[MAXSTR];
if (get_func_name(func->startEA, funcName, MAXSTR) != NULL)
msg("Current function %a, named %s\n", func->startEA, funcName);
}







