int MLGetFunction(MLINK link, char **s, long *n) gets a function with a symbol as a head from the MathLink connection specified by link, storing the name of the symbol in s and the number of arguments of the function in n.
MLGetFunction() allocates memory for the character string corresponding to the name of the head of the function. You must call MLDisownSymbol() to disown this memory.
External programs should not modify the character string s.
MLGetFunction(link, &s, &n) has the same effect as MLGetNext(link); MLGetArgCount(link, &n); MLGetSymbol(link, &s).
See Section 2.13.4.
See also: MLGetNext.