Hi,
You can perform this using following method.
- Create a Simulink function with input and output arguments
- Right click the block and navigate to C/C++ code --> C/C++ Function Interface
- Configure C/C++ Return Argument to Void, which modifies all the output arguments defined in simulink function to pointer
Thanks.