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