Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface > MathLink C Language Functions > MLDestroyMark() >
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink C Language Functions > MLDestroyMark() >

MLDestroyMark()

void MLDestroyMark(MLINK link, MLMARK mark)
destroys the specified mark on a link.
  • Calling MLDestroyMark() releases memory associated with the storage of expressions recorded after the mark.
  • MLDestroyMark() is declared in the MathLink header file mathlink.h.
#include "mathlink.h"

/* create a mark in a link, read some data, then back up */

void f(MLINK lp)
{
    MLMARK mark;

    mark = MLCreateMark(lp);
    if(mark == (MLMARK)0)
        { /* mark creation failed */ }

    /* read data from the link */

    MLSeekToMark(lp, mark, 0);

    MLDestroyMark(lp, mark);
}
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF