Each UDF has three C/C++ functions