MLGetSymbol() allocates memory for the character string. You must call MLReleaseSymbol() to disown this memory. If MLGetSymbol() fails and the function's return value indicates an error, do not call MLReleaseSymbol() on the value contained in s.
MLGetSymbol() creates a string that is terminated by \0.
MLGetSymbol() returns 0 in the event of an error, and a nonzero value if the function succeeds.
Use MLError() to retrieve the error code if MLGetSymbol() fails.
MLGetSymbol() is declared in the MathLink header file mathlink.h.