int MLGetArgCount (MLINK link, int *n) finds the number of arguments to a function on link and stores the result in n.
int MLGetInteger32 (MLINK link, int *i) gets a 32-bit integer from the MathLink connection specified by link and stores it in i.
const char * MLLinkName (MLINK link) returns the name string used to create the link.
int MLPutInteger64List (MLINK link, mlint64 *a, int n) puts a list of n 64-bit integers starting from location a to the MathLink connection specified by link.
int MLTransferToEndOfLoopbackLink (MLINK d, MLINK s) transfers the full contents of the loopback link s to the destination link d.
MLINK MLDuplicateLink (MLINK parent, const char *name, int *err) returns a copy of parent and sets the new link object's name to name.
int MLGetReal32 (MLINK link, float *x) gets a single-precision floating-point number from link and stores it as a float in x.
int MLNewPacket (MLINK link) skips to the end of the current packet on link.
int MLPutRawData (MLINK link, const unsigned char *d, int l) puts raw character data or numeric data from d of length l bytes to link.
int MLReady (MLINK link) tests whether there is data ready to be read from link.