Re: OT. Way to get a C dev to fall in love with another language.
or in C++
std::array<std::any, 100> my_functions;
if you want to be particularly smart, wrap it in a simple class that has a std::enable_if that only allows you to store things for which std::is_invocable is true...