This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Listing of C Functions in the MathLink Library /

MLGetFunction()

FilledSmallSquare 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.

FilledSmallSquare 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.

FilledSmallSquare External programs should not modify the character string s.

FilledSmallSquare MLGetFunction(link, &s, &n) has the same effect as MLGetNext(link); MLGetArgCount(link, &n); MLGetSymbol(link, &s).

FilledSmallSquare See Section 2.13.4.

FilledSmallSquare See also: MLGetNext.