MLGetArgCount() intMLGetArgCount(MLINKlink,long*n) finds the number of arguments to a function on link and stores the result in n. See the Mathematica book: Section 2.12.12.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.