WSReleaseSymbol (C Function)
  - 
    See Also
    - C Functions
- WSGetString()
- WSGetFunction()
 
- Related Guides
- Tech Notes
- 
    
    - 
      See Also
      - C Functions
- WSGetString()
- WSGetFunction()
 
- Related Guides
- Tech Notes
 
- 
      See Also
      
WSReleaseSymbol (C Function)
void WSReleaseSymbol(WSLINK link,char *s)
disowns memory allocated by WSGetSymbol() or WSGetFunction() to store the character string s corresponding to the name of a symbol.
Examples
Basic Examples (1)
#include "wstp.h"
/* read a symbol from a link and then release the memory to WSTP for deallocation */
void f(WSLINK lp)
{
char *sym;
if(! WSGetSymbol(lp, &sym))
{ /* unable to read a symbol from lp */ }
/* ... */
WSReleaseSymbol(lp, sym);
}
See Also
C Functions: WSGetString() WSGetFunction()
History
Introduced in 2007 (6.0)
