You can just cast it to a function pointer of the right type and use it, the ABI is C-compatible