int MLGetUnicodeString(MLINKlink, unsigned short **s, long *n) gets a character string from the MathLink connection specified by link, storing the string in s as a sequence of 16-bit Unicode characters.
MLGetUnicodeString() allocates memory for the character string. You must call MLDisownUnicodeString() to disown this memory. If MLGetUnicodeString() fails and the function's return value indicates and error, do not call MLDisownUnicodeString() on the contents of s.
MLGetUnicodeString() returns immutable data.
MLGetUnicodeString() stores all characters directly in 16-bit UCS-2 form.
ASCII characters are stored with a null high-order byte.
MLGetUnicodeString() returns 0 in the event of an error, and a nonzero value if the function succeeds.
Use MLError() to retrieve the error code if MLGetUnicodeString() fails.