WSDestroyMark (C Function)

void WSDestroyMark(WSLINK link,WSMARK mark)

destroys the specified mark on a link.

Details

  • Calling WSDestroyMark() releases memory associated with the storage of expressions recorded after the mark.
  • WSDestroyMark() is declared in the WSTP header file wstp.h.

Examples

Basic Examples  (1)

#include "wstp.h"

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

void f(WSLINK lp)
{
    WSMARK mark;

    mark = WSCreateMark(lp);
    if(mark == (WSMARK)0)
        { /* mark creation failed */ }

    /* read data from the link */

    WSSeekToMark(lp, mark, 0);

    WSDestroyMark(lp, mark);
}