int MLBytesToPut (MLINK link, int *n) calculates the number of bytes remaining to be written in the textual representation of the current data, and stores the result in n.
void MLClose (MLINK link) closes a MathLink connection.
int MLEndPacket (MLINK link) inserts an indicator in the expression stream that says the current expression is complete and is ready to be sent.
MLENV
(Mathematica MathLink C Function) MLENV is a MathLink type representing a MathLink library environment.
int MLEvaluateString (MLINK link, char *string) sends a string to Mathematica for evaluation, and discards any packets sent in response.
int MLFlush (MLINK link) flushes out any buffers containing data waiting to be sent on link.
int MLGetByteArray (MLINK link, unsigned char ** a, int ** dims, char ***heads, int *d) gets an array of 1-byte sized integers from the MathLink connection specified by link, ...
int MLGetByteString (MLINK link, const unsigned char ** s, int *n, long spec) gets a string of characters from the MathLink connection specified by link, storing the codes ...
int MLGetByteSymbol (MLINK link, const unsigned char ** sp, int *len, long spec) gets a character string corresponding to the name of a symbol from the MathLink connection ...
int MLGetData (MLINK link, char *b, int len, int *count) gets textual data from the MathLink connection specified by link, storing the result in a buffer b of maximum length ...