Trying to allocate function pointers together with strings