C Math Library Reference    

C Math Library Calling Conventions

This section demonstrates the calling conventions that apply to the MATLAB C Math Library functions, including what data type to use for C input and output arguments, how to handle optional arguments, and how to handle MATLAB's multiple output values in C.

Refer to the "How to Call MATLAB Functions" section of Chapter 6 in the MATLAB C Math Library User's Guide for further discussion of the calling conventions and for a list of exceptions to the calling conventions.


 Using the C Math Library Function Reference Constructing a C Prototype