MLReleaseErrorMessage (C 函数)

MLReleaseErrorMessage 已经被 WSReleaseErrorMessage 所取代.

void MLReleaseErrorMessage(( MLINK l , const char * m )

releases the memory used by an error message string generated by the MathLink connection specified in l, contained in m.

更多信息

  • m must be a pointer to an error message string returned by MLErrorMessage().
  • MLReleaseErrorMessage() is declared in the MathLink header file mathlink.h.

范例

基本范例  (1)

#include <stdio.h>
#include "mathlink.h"

/* A function to print a MathLink error message */

void f(MLINK l)
{
    const char *message = MLErrorMessage(l);

    printf("MathLink Error: %s\n", message);

    MLReleaseErrorMessage(l, message);
}