MLReleaseByteString (C Function)
MLReleaseByteString has been replaced by WSReleaseByteString.
void MLReleaseByteString(MLINK link,const unsigned char *s,int n)
disowns memory allocated by MLGetByteString () to store the array of character codes s.
Examples
Basic Examples (1)
#include "mathlink.h"
/* read a string composed of character code values 0-255 from the link and release that memory to MathLink for deallocation */
void f(MLINK lp)
{
const unsigned char *string;
int length;
if(! MLGetByteString(lp, &string, &length, 0))
{ /* unable to read byte string from lp */ }
/* ... */
MLReleaseByteString(lp, string, length);
}