#include <kernwin.hpp> // For get_screen_ea() definition #include <funcs.hpp> ea_t addr = get_screen_ea(); // Get the function after the one containing the address where the user's cursor is positioned func_t *nextFunc = get_next_func(addr); if (nextFunc != NULL) msg("Next function starts at %a\n", nextFunc->startEA);